]> git.baikalelectronics.ru Git - kernel.git/commit
blk-mq: fix redundant check of !e expression
authorJean Sacren <sakiwit@gmail.com>
Fri, 29 Oct 2021 20:29:45 +0000 (14:29 -0600)
committerJens Axboe <axboe@kernel.dk>
Sat, 30 Oct 2021 15:34:14 +0000 (09:34 -0600)
commitba855b70a39000c5aefd29c681ed5b226c652619
tree993aa336586ce8ae954a4e46c187b2f586fb0a41
parentff080459dabd2b1ebc1245704ab9ce7c262d034d
blk-mq: fix redundant check of !e expression

In the if branch, e is checked.  In the else branch, ->dispatch_busy is
merely a number and has no effect on !e.  We should remove the check of
!e since it is always true.

Signed-off-by: Jean Sacren <sakiwit@gmail.com>
Link: https://lore.kernel.org/r/20211029202945.3052-1-sakiwit@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-mq-sched.c