]> git.baikalelectronics.ru Git - kernel.git/commit
block: Remove a duplicative condition
authorBaolin Wang <baolin.wang@linux.alibaba.com>
Wed, 2 Sep 2020 01:45:25 +0000 (09:45 +0800)
committerJens Axboe <axboe@kernel.dk>
Wed, 2 Sep 2020 01:48:06 +0000 (19:48 -0600)
commit1f9539bf35fd431b4a377e670b1b163108e136b8
tree75654937e6130a4deb47548e054634abee64dc9e
parentb3cb8389b11cde45d1064633f163443c4ff1d639
block: Remove a duplicative condition

Remove a duplicative condition to remove below cppcheck warnings:

"warning: Redundant condition: sched_allow_merge. '!A || (A && B)' is
equivalent to '!A || B' [redundantCondition]"

Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Baolin Wang <baolin.wang@linux.alibaba.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-merge.c