]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
bio-integrity: fix boolreturn.cocci warnings
authorkbuild test robot <fengguang.wu@intel.com>
Tue, 4 Jul 2017 18:14:10 +0000 (02:14 +0800)
committerJens Axboe <axboe@kernel.dk>
Tue, 4 Jul 2017 22:11:53 +0000 (16:11 -0600)
block/bio-integrity.c:318:10-11: WARNING: return of 0/1 in function 'bio_integrity_prep' with return type bool

 Return statements in functions returning bool should use
 true/false instead of 1/0.
Generated by: scripts/coccinelle/misc/boolreturn.cocci

Fixes: e23947bd76f0 ("bio-integrity: fold bio_integrity_enabled to bio_integrity_prep")
CC: Dmitry Monakhov <dmonakhov@openvz.org>
Signed-off-by: Fengguang Wu <fengguang.wu@intel.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/bio-integrity.c

index f733beab6ca2b2dd6cce017ddaff06caa103fbda..83e92beb3c9feb25f3be917e2b675f90b1544b5f 100644 (file)
@@ -316,7 +316,7 @@ bool bio_integrity_prep(struct bio *bio)
                                             bytes, offset);
 
                if (ret == 0)
-                       return 0;
+                       return false;
 
                if (ret < bytes)
                        break;