Skip to content

Commit

Permalink
bio-integrity: fix boolreturn.cocci warnings
Browse files Browse the repository at this point in the history
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: e23947b ("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>
  • Loading branch information
kbuild test robot authored and Jens Axboe committed Jul 4, 2017
1 parent 7c20f11 commit ea4d12d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion block/bio-integrity.c
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ bool bio_integrity_prep(struct bio *bio)
bytes, offset);

if (ret == 0)
return 0;
return false;

if (ret < bytes)
break;
Expand Down

0 comments on commit ea4d12d

Please sign in to comment.