Messages in this thread Patch in this message | | | Subject | [PATCH] f2fs: Fix bool initialization/comparison | From | Thomas Meyer <> | Date | Sat, 07 Oct 2017 16:02:21 +0200 |
| |
Bool initializations should use true and false. Bool tests don't need comparisons.
Signed-off-by: Thomas Meyer <thomas@m3y3r.de> ---
diff -u -p a/fs/f2fs/data.c b/fs/f2fs/data.c --- a/fs/f2fs/data.c +++ b/fs/f2fs/data.c @@ -419,7 +419,7 @@ next: bio_page = fio->encrypted_page ? fio->encrypted_page : fio->page; /* set submitted = 1 as a return value */ - fio->submitted = 1; + fio->submitted = true; inc_page_count(sbi, WB_DATA_TYPE(bio_page));
| |