[lkml]   [2020]   [Jan]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
Patch in this message
Subject[PATCH 4.9 266/271] bcache: silence static checker warning
From: Dan Carpenter <>

commit da22f0eea555baf9b0a84b52afe56db2052cfe8d upstream.

In olden times, closure_return() used to have a hidden return built in.
We removed the hidden return but forgot to add a new return here. If
"c" were NULL we would oops on the next line, but fortunately "c" is
never NULL. Let's just remove the if statement.

Signed-off-by: Dan Carpenter <>
Reviewed-by: Coly Li <>
Signed-off-by: Jens Axboe <>
Signed-off-by: Lee Jones <>
Signed-off-by: Greg Kroah-Hartman <>

drivers/md/bcache/super.c | 3 ---
1 file changed, 3 deletions(-)

--- a/drivers/md/bcache/super.c
+++ b/drivers/md/bcache/super.c
@@ -1398,9 +1398,6 @@ static void cache_set_flush(struct closu
struct btree *b;
unsigned i;

- if (!c)
- closure_return(cl);


 \ /
  Last update: 2020-01-28 15:26    [W:0.651 / U:1.800 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site