Messages in this thread Patch in this message | | | Date | Sun, 28 Mar 2021 10:13:32 +0800 | From | kernel test robot <> | Subject | [PATCH] fs/ntfs3: fix boolreturn.cocci warnings |
| |
From: kernel test robot <lkp@intel.com>
fs/ntfs3/xattr.c:1037:8-9: WARNING: return of 0/1 in function 'ntfs_xattr_user_list' 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
CC: Konstantin Komarov <almaz.alexandrovich@paragon-software.com> Reported-by: kernel test robot <lkp@intel.com> Signed-off-by: kernel test robot <lkp@intel.com> ---
url: https://github.com/0day-ci/linux/commits/Konstantin-Komarov/NTFS-read-write-driver-GPL-implementation-by-Paragon-Software/20210328-054516 base: 931294922e65a23e1aad6398b9ae02df74044679
xattr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
--- a/fs/ntfs3/xattr.c +++ b/fs/ntfs3/xattr.c @@ -1034,7 +1034,7 @@ out: static bool ntfs_xattr_user_list(struct dentry *dentry) { - return 1; + return true; } static const struct xattr_handler ntfs_xattr_handler = {
| |