From mboxrd@z Thu Jan 1 00:00:00 1970 Content-Type: multipart/mixed; boundary="===============0515042568913843947==" MIME-Version: 1.0 From: kernel test robot To: kbuild-all@lists.01.org Subject: [PATCH] ANDROID: ext4: fix boolreturn.cocci warnings Date: Thu, 25 Jun 2020 09:59:09 +0800 Message-ID: <20200625015909.GA14809@f467103b09cf> In-Reply-To: <202006250904.pZzaW30W%lkp@intel.com> List-Id: --===============0515042568913843947== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: kernel test robot fs/ext4/namei.c:1428:12-13: WARNING: return of 0/1 in function 'ext4_match'= 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: b10c4acd41e8 ("ANDROID: ext4: Handle casefolding with encryption") Signed-off-by: kernel test robot --- tree: https://android.googlesource.com/kernel/common android-4.14-stable head: 6ccc4309743b5cd821584d30fc971dd375bb976c commit: b10c4acd41e8b15cff1119e2100adf36b013b840 [1/2] ANDROID: ext4: Handl= e casefolding with encryption namei.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/fs/ext4/namei.c +++ b/fs/ext4/namei.c @@ -1425,7 +1425,7 @@ static bool ext4_match(struct inode *par if (hinfo.hash !=3D EXT4_DIRENT_HASH(de) || hinfo.minor_hash !=3D EXT4_DIRENT_MINOR_HASH(de)) - return 0; + return false; } return !ext4_ci_compare(parent, &cf, de->name, de->name_len, true); --===============0515042568913843947==--