OSDN Git Service

bcache: do not assign in if condition in bcache_init()
authorFlorian Schmaus <flo@geekplace.eu>
Thu, 26 Jul 2018 04:17:39 +0000 (12:17 +0800)
committerJens Axboe <axboe@kernel.dk>
Fri, 27 Jul 2018 15:15:46 +0000 (09:15 -0600)
commit16c1fdf4cfd6c0091e59b93ec2cb7e99973f8244
treea7ff9e290aedbf5fc73a78dfcd25f9a9626703be
parent6268dc2c4703aabfb0b35681be709acf4c2826c6
bcache: do not assign in if condition in bcache_init()

Fixes an error condition reported by checkpatch.pl which is caused by
assigning a variable in an if condition.

Signed-off-by: Florian Schmaus <flo@geekplace.eu>
Signed-off-by: Coly Li <colyli@suse.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/md/bcache/super.c