lkml.org 
[lkml]   [2021]   [Mar]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
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 = {
\
 
 \ /
  Last update: 2021-03-28 04:17    [W:0.102 / U:3.400 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site