Message ID | 20220121094732.1002257-1-deng.changcheng@zte.com.cn (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | block: fix boolreturn.cocci warning | expand |
diff --git a/block/bio.c b/block/bio.c index 4312a8085396..108b11106c8d 100644 --- a/block/bio.c +++ b/block/bio.c @@ -1054,7 +1054,7 @@ bool bio_add_folio(struct bio *bio, struct folio *folio, size_t len, size_t off) { if (len > UINT_MAX || off > UINT_MAX) - return 0; + return false; return bio_add_page(bio, &folio->page, len, off) > 0; }