diff options
author | Xu Wang <vulab@iscas.ac.cn> | 2020-07-25 14:00:18 +0200 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2020-07-25 15:38:20 +0200 |
commit | 7236657c6b3abf25f8b0a2465cd8f51728d0196b (patch) | |
tree | 98aac67d5147889126ea51917aa6bfb7918e0031 /drivers/md/bcache | |
parent | bcache: journel: use for_each_clear_bit() to simplify the code (diff) | |
download | linux-7236657c6b3abf25f8b0a2465cd8f51728d0196b.tar.xz linux-7236657c6b3abf25f8b0a2465cd8f51728d0196b.zip |
bcache: writeback: Remove unneeded variable i
Remove unneeded variable i in bch_dirty_init_thread().
Signed-off-by: Xu Wang <vulab@iscas.ac.cn>
Signed-off-by: Coly Li <colyli@suse.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'drivers/md/bcache')
-rw-r--r-- | drivers/md/bcache/writeback.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/md/bcache/writeback.c b/drivers/md/bcache/writeback.c index 1cf1e5016cb9..71801c086b82 100644 --- a/drivers/md/bcache/writeback.c +++ b/drivers/md/bcache/writeback.c @@ -825,10 +825,8 @@ static int bch_dirty_init_thread(void *arg) struct btree_iter iter; struct bkey *k, *p; int cur_idx, prev_idx, skip_nr; - int i; k = p = NULL; - i = 0; cur_idx = prev_idx = 0; bch_btree_iter_init(&c->root->keys, &iter, NULL); |