diff options
author | kbuild test robot <fengguang.wu@intel.com> | 2017-07-05 02:14:10 +0800 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2017-07-04 16:11:53 -0600 |
commit | ea4d12dabf872b496218cdc8e7874feef8676cdd (patch) | |
tree | 55c985f517d41e7e84a9e57220bd276587ec2b15 /block/bio-integrity.c | |
parent | 7c20f11680a441df09de7235206f70115fbf6290 (diff) | |
download | linux-stable-ea4d12dabf872b496218cdc8e7874feef8676cdd.tar.gz linux-stable-ea4d12dabf872b496218cdc8e7874feef8676cdd.tar.bz2 linux-stable-ea4d12dabf872b496218cdc8e7874feef8676cdd.zip |
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 <dmonakhov@openvz.org>
Signed-off-by: Fengguang Wu <fengguang.wu@intel.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'block/bio-integrity.c')
-rw-r--r-- | block/bio-integrity.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |