]> git.baikalelectronics.ru Git - kernel.git/commit
block: remove useless BUG_ON() in blk_mq_put_tag()
authorDamien Le Moal <damien.lemoal@opensource.wdc.com>
Thu, 2 Jun 2022 07:51:59 +0000 (16:51 +0900)
committerJens Axboe <axboe@kernel.dk>
Thu, 2 Jun 2022 08:05:56 +0000 (02:05 -0600)
commit4bc0766ea7cbddf1186dd22b3e5d270762648f5b
tree22b446f1d2cbd709e9763c118e7c3569dbab2858
parent2f80db42daa916d94d21ec7c4e15db9be6d2acde
block: remove useless BUG_ON() in blk_mq_put_tag()

Since the if condition in blk_mq_put_tag() checks that the tag to put is
not a reserved one, the BUG_ON() check in the else branch checking if
the tag is indeed a reserved one is useless. Remove it.

Signed-off-by: Damien Le Moal <damien.lemoal@opensource.wdc.com>
Link: https://lore.kernel.org/r/20220602075159.1273366-1-damien.lemoal@opensource.wdc.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-mq-tag.c