From: Gustavo A. R. Silva Date: Thu, 2 Aug 2018 00:51:38 +0000 (-0500) Subject: f2fs: use true and false for boolean values X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=2e68719a085228d521f4178755f8b7ce8a0839a5;p=sagit-ice-cold%2Fkernel_xiaomi_msm8998.git 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 Reviewed-by: Chao Yu Signed-off-by: Jaegeuk Kim --- diff --git a/fs/f2fs/f2fs.h b/fs/f2fs/f2fs.h index 5323390f49b4..4f7ec7ec48ec 100644 --- a/fs/f2fs/f2fs.h +++ b/fs/f2fs/f2fs.h @@ -1399,7 +1399,7 @@ static inline bool is_idle(struct f2fs_sb_info *sbi) struct request_list *rl = &q->root_rl; if (rl->count[BLK_RW_SYNC] || rl->count[BLK_RW_ASYNC]) - return 0; + return false; return f2fs_time_over(sbi, REQ_TIME); } @@ -3485,7 +3485,7 @@ static inline bool f2fs_may_encrypt(struct inode *inode) return (S_ISREG(mode) || S_ISDIR(mode) || S_ISLNK(mode)); #else - return 0; + return false; #endif }