Skip to content

Commit 5234f2c

Browse files
calebsanderaxboe
authored andcommitted
ublk: remove io argument from ublk_auto_buf_reg_fallback()
The argument has been unused since the function was added, so remove it. Signed-off-by: Caleb Sander Mateos <[email protected]> Reviewed-by: Ming Lei <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jens Axboe <[email protected]>
1 parent 9172dbf commit 5234f2c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/block/ublk_drv.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1182,7 +1182,7 @@ static inline void __ublk_abort_rq(struct ublk_queue *ubq,
11821182
blk_mq_end_request(rq, BLK_STS_IOERR);
11831183
}
11841184

1185-
static void ublk_auto_buf_reg_fallback(struct request *req, struct ublk_io *io)
1185+
static void ublk_auto_buf_reg_fallback(struct request *req)
11861186
{
11871187
const struct ublk_queue *ubq = req->mq_hctx->driver_data;
11881188
struct ublksrv_io_desc *iod = ublk_get_iod(ubq, req->tag);
@@ -1203,7 +1203,7 @@ static bool ublk_auto_buf_reg(struct request *req, struct ublk_io *io,
12031203
pdu->buf.index, issue_flags);
12041204
if (ret) {
12051205
if (pdu->buf.flags & UBLK_AUTO_BUF_REG_FALLBACK) {
1206-
ublk_auto_buf_reg_fallback(req, io);
1206+
ublk_auto_buf_reg_fallback(req);
12071207
return true;
12081208
}
12091209
blk_mq_end_request(req, BLK_STS_IOERR);

0 commit comments

Comments
 (0)