]> git.baikalelectronics.ru Git - kernel.git/commit
block: remove redundant check about 'set->nr_hw_queues' in blk_mq_alloc_tag_set()
authorXiaoguang Wang <wangxg.fnst@cn.fujitsu.com>
Mon, 30 Mar 2015 05:19:14 +0000 (13:19 +0800)
committerJens Axboe <axboe@fb.com>
Mon, 30 Mar 2015 15:04:27 +0000 (09:04 -0600)
commit1a462a93bbe79fea334b3562adcb382beb929182
tree291929592e7fcbc757d94138728249eb48ab8169
parent1284d6f4621c067e92fb979bcccfbc4a99713321
block: remove redundant check about 'set->nr_hw_queues' in blk_mq_alloc_tag_set()

At the beginning of blk_mq_alloc_tag_set(), we have already checked whether
'set->nr_hw_queues' is zero, so here remove this redundant check.

Signed-off-by: Xiaoguang Wang <wangxg.fnst@cn.fujitsu.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
block/blk-mq.c