diff options
author | Haowen Bai <baihaowen@meizu.com> | 2022-04-06 21:07:15 +0200 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2022-04-17 19:54:24 -0600 |
commit | 8fd6533ef3f7729e4aa29ead83844c042688615a (patch) | |
tree | 9069b14554cc4f10a1198067a5d627ea4dc22360 /drivers/block/nbd.c | |
parent | 90c6c291453922362ae026f1049843368111bdfe (diff) | |
download | linux-8fd6533ef3f7729e4aa29ead83844c042688615a.tar.gz linux-8fd6533ef3f7729e4aa29ead83844c042688615a.tar.bz2 linux-8fd6533ef3f7729e4aa29ead83844c042688615a.zip |
drbd: Return true/false (not 1/0) from bool functions
Return boolean values ("true" or "false") instead of 1 or 0 from bool
functions. This fixes the following warnings from coccicheck:
./drivers/block/drbd/drbd_req.c:912:9-10: WARNING: return of 0/1 in
function 'remote_due_to_read_balancing' with return type bool
Signed-off-by: Haowen Bai <baihaowen@meizu.com>
Reviewed-by: Christoph Böhmwalder <christoph.boehmwalder@linbit.com>
Link: https://lore.kernel.org/r/20220406190715.1938174-8-christoph.boehmwalder@linbit.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'drivers/block/nbd.c')
0 files changed, 0 insertions, 0 deletions