diff options
author | YueHaibing <yuehaibing@huawei.com> | 2018-10-16 04:45:26 +0300 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2018-10-16 05:02:59 +0300 |
commit | de038597be8809619c4f17d70e86dab936bb1a10 (patch) | |
tree | b2acf2d5bab808c6c2dadab48587c0fb85622fd6 /drivers/block/null_blk_main.c | |
parent | 8f94004e2a51a3ea195cf3447eb5d5906f36d8b3 (diff) | |
download | linux-de038597be8809619c4f17d70e86dab936bb1a10.tar.xz |
null_blk: remove set but not used variable 'q'
Fixes gcc '-Wunused-but-set-variable' warning:
drivers/block/null_blk_main.c: In function 'end_cmd':
drivers/block/null_blk_main.c:609:24: warning:
variable 'q' set but not used [-Wunused-but-set-variable]
It not used any more after commit
e50b1e327aeb ("null_blk: remove legacy IO path")
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
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.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/block/null_blk_main.c b/drivers/block/null_blk_main.c index 0b302d707095..e94591021682 100644 --- a/drivers/block/null_blk_main.c +++ b/drivers/block/null_blk_main.c @@ -606,12 +606,8 @@ static struct nullb_cmd *alloc_cmd(struct nullb_queue *nq, int can_wait) static void end_cmd(struct nullb_cmd *cmd) { - struct request_queue *q = NULL; int queue_mode = cmd->nq->dev->queue_mode; - if (cmd->rq) - q = cmd->rq->q; - switch (queue_mode) { case NULL_Q_MQ: blk_mq_end_request(cmd->rq, cmd->error); |