blk-mq: Invert check in blk_mq_update_nr_requests()
authorJohn Garry <john.garry@huawei.com>
Tue, 5 Oct 2021 10:23:29 +0000 (18:23 +0800)
committerJens Axboe <axboe@kernel.dk>
Mon, 18 Oct 2021 12:17:02 +0000 (06:17 -0600)
commitf6adcef5f317c78a899ca9766e90e47026834158
tree95c604236291598a242dceb184fffe7377f2a6e7
parent8fa044640f128c0cd015f72cda42989a664889fc
blk-mq: Invert check in blk_mq_update_nr_requests()

It's easier to read:

if (x)
X;
else
Y;

over:

if (!x)
Y;
else
X;

No functional change intended.

Signed-off-by: John Garry <john.garry@huawei.com>
Reviewed-by: Ming Lei <ming.lei@redhat.com>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Link: https://lore.kernel.org/r/1633429419-228500-5-git-send-email-john.garry@huawei.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-mq.c