From: kbuild test robot Date: Tue, 4 Jul 2017 18:14:10 +0000 (+0800) Subject: bio-integrity: fix boolreturn.cocci warnings X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=ea4d12dabf872b496218cdc8e7874feef8676cdd;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git bio-integrity: fix boolreturn.cocci warnings 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 Signed-off-by: Fengguang Wu Signed-off-by: Jens Axboe --- diff --git a/block/bio-integrity.c b/block/bio-integrity.c index f733beab6ca2..83e92beb3c9f 100644 --- a/block/bio-integrity.c +++ b/block/bio-integrity.c @@ -316,7 +316,7 @@ bool bio_integrity_prep(struct bio *bio) bytes, offset); if (ret == 0) - return 0; + return false; if (ret < bytes) break;