bcache: code cleanup in __bch_bucket_alloc_set()
authorColy Li <colyli@suse.de>
Tue, 28 May 2024 12:09:14 +0000 (20:09 +0800)
committerJens Axboe <axboe@kernel.dk>
Tue, 28 May 2024 12:55:59 +0000 (06:55 -0600)
commit74d4ce92e08d5669d66fd890403724faa4286c21
tree925167fa3a00b12512e4fec28a4df2f9e0d4ce4c
parent05356938a4be356adde4eab4425c6822f3c7d706
bcache: code cleanup in __bch_bucket_alloc_set()

In __bch_bucket_alloc_set() the lines after lable 'err:' indeed do
nothing useful after multiple cache devices are removed from bcache
code. This cleanup patch drops the useless code to save a bit CPU
cycles.

Signed-off-by: Coly Li <colyli@suse.de>
Link: https://lore.kernel.org/r/20240528120914.28705-4-colyli@suse.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/md/bcache/alloc.c