[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20200911040539.113307-2-zhengbin13@huawei.com>
Date: Fri, 11 Sep 2020 12:05:35 +0800
From: Zheng Bin <zhengbin13@...wei.com>
To: <sfrench@...ba.org>, <linux-cifs@...r.kernel.org>,
<samba-technical@...ts.samba.org>, <linux-kernel@...r.kernel.org>
CC: <yi.zhang@...wei.com>, <zhengbin13@...wei.com>
Subject: [PATCH -next 1/5] cifs: fix comparison to bool warning in cifsacl.c
Fixes coccicheck warning:
fs/cifs/cifsacl.c:371:6-49: WARNING: Comparison to bool
Signed-off-by: Zheng Bin <zhengbin13@...wei.com>
---
fs/cifs/cifsacl.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/fs/cifs/cifsacl.c b/fs/cifs/cifsacl.c
index fcff14ef1c70..9447ff1a5b6a 100644
--- a/fs/cifs/cifsacl.c
+++ b/fs/cifs/cifsacl.c
@@ -368,7 +368,7 @@ sid_to_id(struct cifs_sb_info *cifs_sb, struct cifs_sid *psid,
else
is_group = false;
- if (is_well_known_sid(psid, &unix_id, is_group) == false)
+ if (!is_well_known_sid(psid, &unix_id, is_group))
goto try_upcall_to_get_id;
if (is_group) {
--
2.26.0.106.g9fadedd
Powered by blists - more mailing lists