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

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