[PATCH] exfat: fix boolreturn.cocci warnings
From: kbuild test robot
Date: Sat Nov 23 2019 - 10:53:27 EST
From: kbuild test robot <lkp@xxxxxxxxx>
fs/exfat/file.c:50:10-11: WARNING: return of 0/1 in function 'exfat_allow_set_time' with return type bool
Return statements in functions returning bool should use
true/false instead of 1/0.
Generated by: scripts/coccinelle/misc/boolreturn.cocci
Fixes: f7c468dc756c ("exfat: add exfat in fs/Kconfig and fs/Makefile")
CC: Namjae Jeon <namjae.jeon@xxxxxxxxxxx>
Signed-off-by: kbuild test robot <lkp@xxxxxxxxx>
---
url: https://github.com/0day-ci/linux/commits/Namjae-Jeon/add-the-latest-exfat-driver/20191122-084735
base: 9942eae47585ee056b140bbfa306f6a1d6b8f383
file.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
--- a/fs/exfat/file.c
+++ b/fs/exfat/file.c
@@ -47,11 +47,11 @@ static bool exfat_allow_set_time(struct
if (in_group_p(inode->i_gid))
allow_utime >>= 3;
if (allow_utime & MAY_WRITE)
- return 1;
+ return true;
}
/* use a default check */
- return 0;
+ return false;
}
static int exfat_sanitize_mode(const struct exfat_sb_info *sbi,