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)
commitf9018ac9308ea415e659cfbdda040504ef92597b
tree291929592e7fcbc757d94138728249eb48ab8169
parent271508dba2c3fc307e7c44e2731a2ece70a4025e
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