diff options
author | Colin Ian King <colin.i.king@gmail.com> | 2023-11-20 08:24:56 +0300 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2023-11-20 19:17:51 +0300 |
commit | be93825f0e6428c2d3f03a6e4d447dc48d33d7ff (patch) | |
tree | 0fcad897d51313a07af3f82b29cf035d28a77886 /rust | |
parent | 777967e7e9f6f5f3e153abffb562bffaf4430d26 (diff) | |
download | linux-be93825f0e6428c2d3f03a6e4d447dc48d33d7ff.tar.xz |
bcache: remove redundant assignment to variable cur_idx
Variable cur_idx is being initialized with a value that is never read,
it is being re-assigned later in a while-loop. Remove the redundant
assignment. Cleans up clang scan build warning:
drivers/md/bcache/writeback.c:916:2: warning: Value stored to 'cur_idx'
is never read [deadcode.DeadStores]
Signed-off-by: Colin Ian King <colin.i.king@gmail.com>
Reviewed-by: Coly Li <colyli@suse.de>
Signed-off-by: Coly Li <colyli@suse.de>
Link: https://lore.kernel.org/r/20231120052503.6122-4-colyli@suse.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'rust')
0 files changed, 0 insertions, 0 deletions