summaryrefslogtreecommitdiffstats
path: root/drivers/block/null_blk_main.c
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2018-11-10 21:03:52 +0100
committerJens Axboe <axboe@kernel.dk>2018-11-10 21:03:52 +0100
commit8e18ebef4dd4c83cea65730821da423553ed6019 (patch)
treea9a959c96c38aa13183057a5b5b7d36ecf269039 /drivers/block/null_blk_main.c
parentide: don't use req->special (diff)
downloadlinux-8e18ebef4dd4c83cea65730821da423553ed6019.tar.xz
linux-8e18ebef4dd4c83cea65730821da423553ed6019.zip
null_blk: remove unused nullb device
The compiler rightfully complains: drivers/block/null_blk_main.c: In function ‘null_complete_rq’: drivers/block/null_blk_main.c:647:16: warning: unused variable ‘nullb’ [-Wunused-variable] struct nullb *nullb = rq->q->queuedata; ^~~~~ Fixes: 49f6613632f9 ("nullb: remove leftover legacy request code") Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'drivers/block/null_blk_main.c')
-rw-r--r--drivers/block/null_blk_main.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/block/null_blk_main.c b/drivers/block/null_blk_main.c
index 16ba3db2a015..63c23fcfc4df 100644
--- a/drivers/block/null_blk_main.c
+++ b/drivers/block/null_blk_main.c
@@ -644,8 +644,6 @@ static void null_cmd_end_timer(struct nullb_cmd *cmd)
static void null_complete_rq(struct request *rq)
{
- struct nullb *nullb = rq->q->queuedata;
-
end_cmd(blk_mq_rq_to_pdu(rq));
}