Skip to content

Commit 6e45f2a

Browse files
GustavoARSilvaJaegeuk Kim
authored andcommitted
f2fs: use true and false for boolean values
Return statements in functions returning bool should use true or false instead of an integer value. This issue was detected with the help of Coccinelle. Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com> Reviewed-by: Chao Yu <yuchao0@huawei.com> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
1 parent e494c2f commit 6e45f2a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎fs/f2fs/f2fs.h‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1334,7 +1334,7 @@ static inline bool is_idle(struct f2fs_sb_info *sbi)
13341334
struct request_list *rl = &q->root_rl;
13351335

13361336
if (rl->count[BLK_RW_SYNC] || rl->count[BLK_RW_ASYNC])
1337-
return 0;
1337+
return false;
13381338

13391339
return f2fs_time_over(sbi, REQ_TIME);
13401340
}
@@ -3400,7 +3400,7 @@ static inline bool f2fs_may_encrypt(struct inode *inode)
34003400

34013401
return (S_ISREG(mode) || S_ISDIR(mode) || S_ISLNK(mode));
34023402
#else
3403-
return 0;
3403+
return false;
34043404
#endif
34053405
}
34063406

0 commit comments

Comments
 (0)