Re: [PATCH] bcache: remove set but not used variable 'i'

From: wanghai (M)
Date: Mon Apr 06 2020 - 02:39:36 EST



å 2020/4/6 12:43, Coly Li åé:
On 2020/4/7 7:36 äå, Wang Hai wrote:
Fixes gcc '-Wunused-but-set-variable' warning:

drivers/md/bcache/btree.c: In function bch_btree_check_thread:
drivers/md/bcache/btree.c:1910:6: warning:
variable âiâ set but not used [-Wunused-but-set-variable]

It's not used since commit 8e7102273f59 ("bcache: make bch_btree_check()
to be multithreaded"), so remove it.

Reported-by: Hulk Robot <hulkci@xxxxxxxxxx>
Signed-off-by: Wang Hai <wanghai38@xxxxxxxxxx>
Hi Hai,

Colin King already submitted a similar patch on Apr 2 to fix it.

Thanks.

Coly Li

Thanks for reminding, please ignore this patch.