From: Thomas Meyer Date: Sat, 7 Oct 2017 14:02:21 +0000 (+0200) Subject: f2fs: Fix bool initialization/comparison X-Git-Tag: v4.15-rc1~83^2~56 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ebf7c522fdc2ec2fa0fc2351ef613841f79586e5;p=thirdparty%2Fkernel%2Flinux.git f2fs: Fix bool initialization/comparison Bool initializations should use true and false. Bool tests don't need comparisons. Signed-off-by: Thomas Meyer Signed-off-by: Jaegeuk Kim --- diff --git a/fs/f2fs/data.c b/fs/f2fs/data.c index 030fb5cf2b51b..60a07fb26475a 100644 --- a/fs/f2fs/data.c +++ b/fs/f2fs/data.c @@ -418,8 +418,8 @@ next: bio_page = fio->encrypted_page ? fio->encrypted_page : fio->page; - /* set submitted = 1 as a return value */ - fio->submitted = 1; + /* set submitted = true as a return value */ + fio->submitted = true; inc_page_count(sbi, WB_DATA_TYPE(bio_page));