linux-bcache.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] bcache: writeback: Remove unneeded variable ret
@ 2020-07-09  3:39 Xu Wang
  2020-07-09  3:39 ` Xu Wang
  2020-07-09  4:07 ` Coly Li
  0 siblings, 2 replies; 3+ messages in thread
From: Xu Wang @ 2020-07-09  3:39 UTC (permalink / raw)
  To: colyli, kent.overstreet, linux-bcache; +Cc: linux-kernel, Xu Wang

Remove unneeded variable ret i.

Signed-off-by: Xu Wang <vulab@iscas.ac.cn>
---
 drivers/md/bcache/writeback.c | 2 --
 1 file changed, 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);
-- 
2.17.1

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [PATCH] bcache: writeback: Remove unneeded variable ret
  2020-07-09  3:39 [PATCH] bcache: writeback: Remove unneeded variable ret Xu Wang
@ 2020-07-09  3:39 ` Xu Wang
  2020-07-09  4:07 ` Coly Li
  1 sibling, 0 replies; 3+ messages in thread
From: Xu Wang @ 2020-07-09  3:39 UTC (permalink / raw)
  To: colyli, kent.overstreet, linux-bcache; +Cc: linux-kernel, Xu Wang

Remove unneeded variable ret i.

Signed-off-by: Xu Wang <vulab@iscas.ac.cn>
---
 drivers/md/bcache/writeback.c | 2 --
 1 file changed, 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);
-- 
2.17.1


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] bcache: writeback: Remove unneeded variable ret
  2020-07-09  3:39 [PATCH] bcache: writeback: Remove unneeded variable ret Xu Wang
  2020-07-09  3:39 ` Xu Wang
@ 2020-07-09  4:07 ` Coly Li
  1 sibling, 0 replies; 3+ messages in thread
From: Coly Li @ 2020-07-09  4:07 UTC (permalink / raw)
  To: Xu Wang; +Cc: kent.overstreet, linux-bcache, linux-kernel

On 2020/7/9 11:39, Xu Wang wrote:
> Remove unneeded variable ret i.
> 

I see 'i' is removed, where is 'ret' ?

Thanks.


Coly Li


> Signed-off-by: Xu Wang <vulab@iscas.ac.cn>
> ---
>  drivers/md/bcache/writeback.c | 2 --
>  1 file changed, 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);
> 

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-07-09  4:07 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-09  3:39 [PATCH] bcache: writeback: Remove unneeded variable ret Xu Wang
2020-07-09  3:39 ` Xu Wang
2020-07-09  4:07 ` Coly Li

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).