]> git.baikalelectronics.ru Git - kernel.git/commit
blk-throttle: clean up codes that can't be reached
authorYu Kuai <yukuai3@huawei.com>
Sat, 3 Sep 2022 06:28:26 +0000 (14:28 +0800)
committerJens Axboe <axboe@kernel.dk>
Sun, 4 Sep 2022 20:38:18 +0000 (14:38 -0600)
commit2d8f7a3b9fb31d2566b24fd94d5a533f9322c53c
treea66bf2b4d872d050a909902350de4fe521a45ce3
parentbce1b56c73826fec8caf6187f0c922ede397a5a8
blk-throttle: clean up codes that can't be reached

While doing code coverage testing while CONFIG_BLK_DEV_THROTTLING_LOW is
disabled, we found that there are many codes can never be reached.

This patch move such codes inside "#ifdef CONFIG_BLK_DEV_THROTTLING_LOW".

Signed-off-by: Yu Kuai <yukuai3@huawei.com>
Acked-by: Tejun Heo <tj@kernel.org>
Link: https://lore.kernel.org/r/20220903062826.1099085-1-yukuai1@huaweicloud.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-throttle.c