bcache: silence static checker warning
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 6 Sep 2017 06:26:00 +0000 (14:26 +0800)
committerJens Axboe <axboe@kernel.dk>
Wed, 6 Sep 2017 14:17:33 +0000 (08:17 -0600)
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>
drivers/md/bcache/super.c

index 3b724fa..1ae6337 100644 (file)
@@ -1376,9 +1376,6 @@ static void cache_set_flush(struct closure *cl)
        struct btree *b;
        unsigned i;
 
-       if (!c)
-               closure_return(cl);
-
        bch_cache_accounting_destroy(&c->accounting);
 
        kobject_put(&c->internal);