bcache: remove redundant variables i and n
authorColin Ian King <colin.king@canonical.com>
Wed, 27 May 2020 04:01:51 +0000 (12:01 +0800)
committerJens Axboe <axboe@kernel.dk>
Wed, 27 May 2020 11:19:36 +0000 (05:19 -0600)
Variables i and n are being assigned but are never used. They are
redundant and can be removed.

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Coly Li <colyli@suse.de>
Addresses-Coverity: ("Unused value")
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/md/bcache/btree.c

index 72856e5..114d0d7 100644 (file)
@@ -1907,10 +1907,8 @@ static int bch_btree_check_thread(void *arg)
        struct btree_iter iter;
        struct bkey *k, *p;
        int cur_idx, prev_idx, skip_nr;
-       int i, n;
 
        k = p = NULL;
-       i = n = 0;
        cur_idx = prev_idx = 0;
        ret = 0;