diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2017-09-06 02:26:00 -0400 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2017-09-06 10:17:33 -0400 |
commit | da22f0eea555baf9b0a84b52afe56db2052cfe8d (patch) | |
tree | f9bcc1c208542f271d9bd6813571d50791aecf3f | |
parent | 9baf30972b5568d8b5bc8b3c46a6ec5b58100463 (diff) |
bcache: silence static checker warning
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 <dan.carpenter@oracle.com>
Reviewed-by: Coly Li <colyli@suse.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
-rw-r--r-- | drivers/md/bcache/super.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/md/bcache/super.c b/drivers/md/bcache/super.c index 3b724fa2b68d..1ae63374366c 100644 --- a/drivers/md/bcache/super.c +++ b/drivers/md/bcache/super.c | |||
@@ -1376,9 +1376,6 @@ static void cache_set_flush(struct closure *cl) | |||
1376 | struct btree *b; | 1376 | struct btree *b; |
1377 | unsigned i; | 1377 | unsigned i; |
1378 | 1378 | ||
1379 | if (!c) | ||
1380 | closure_return(cl); | ||
1381 | |||
1382 | bch_cache_accounting_destroy(&c->accounting); | 1379 | bch_cache_accounting_destroy(&c->accounting); |
1383 | 1380 | ||
1384 | kobject_put(&c->internal); | 1381 | kobject_put(&c->internal); |