Skip to contentSkip to conversation

bcache: writeback: Remove unneeded variable i

PATCH In review Xu Wang 2 participants 2 messages Jul 9, 2020 bcache (block layer cache)

lore
Share & tools
lore

Xu Wang

author
#0 lore raw

PATCH 1/1 bcache: writeback: Remove unneeded variable i

Remove unneeded variable i in bch_dirty_init_thread().

---
 drivers/md/bcache/writeback.c | 2 --
 1 file changed, 2 deletions(-)
drivers/md/bcache/writeback.c +0 -2
index 1cf1e5016cb9..71801c086b82 100644
@@ -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);
Signature · 1 line
2.17.1
#1 lore raw
Quoted 3 lines · Xu Wang

Remove unneeded variable i in bch_dirty_init_thread().

Add it into my testing queue. Thanks.

Coly Li

Quoted 20 lines
---
 drivers/md/bcache/writeback.c | 2 --
 1 file changed, 2 deletions(-)
drivers/md/bcache/writeback.c +0 -2
index 1cf1e5016cb9..71801c086b82 100644
@@ -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);