blk-mq-tag: remove redundant check for 'data->hctx' being non-NULL
authorJens Axboe <axboe@fb.com>
Thu, 19 Jan 2017 14:39:17 +0000 (07:39 -0700)
committerJens Axboe <axboe@fb.com>
Thu, 19 Jan 2017 14:43:05 +0000 (07:43 -0700)
commit8cecb07d70e761eb0112f921d939b9ab2ea2171f
tree11f63e7a42625ff2d2c3dd1886e12a925d0405f1
parent610d886c0c22fa7504e817b6d03c402de64b0264
blk-mq-tag: remove redundant check for 'data->hctx' being non-NULL

We used to pass in NULL for hctx for reserved tags, but we don't
do that anymore. Hence the check for whether hctx is NULL or not
is now redundant, kill it.

Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Fixes: a642a158aec6 ("blk-mq-tag: cleanup the normal/reserved tag allocation")
Signed-off-by: Jens Axboe <axboe@fb.com>
block/blk-mq-tag.c