[PATCH] f2fs: Fix bool initialization/comparison
From: Thomas Meyer
Date: Sat Oct 07 2017 - 10:25:59 EST
Bool initializations should use true and false. Bool tests don't need
comparisons.
Signed-off-by: Thomas Meyer <thomas@xxxxxxxx>
---
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));