summaryrefslogtreecommitdiff
path: root/fs
diff options
context:
space:
mode:
authorYANG LI <abaci-bugfix@linux.alibaba.com>2021-01-11 17:15:28 +0800
committerSteve French <stfrench@microsoft.com>2021-01-13 12:55:40 -0600
commited6b1920f84bc5c3d666dc383ff3bbc60f0f62a5 (patch)
tree6b5abe5ee802e8389b20a70dbbedfb761b8f3beb /fs
parentc13e7af042270724b42a466edc48a70a43f571f2 (diff)
cifs: connect: style: Simplify bool comparison
Fix the following coccicheck warning: ./fs/cifs/connect.c:3740:6-21: WARNING: Comparison of 0/1 to bool variable Signed-off-by: YANG LI <abaci-bugfix@linux.alibaba.com> Reported-by: Abaci Robot<abaci@linux.alibaba.com> Signed-off-by: Steve French <stfrench@microsoft.com>
Diffstat (limited to 'fs')
-rw-r--r--fs/cifs/connect.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/cifs/connect.c b/fs/cifs/connect.c
index b9df85506938..5d39129406ea 100644
--- a/fs/cifs/connect.c
+++ b/fs/cifs/connect.c
@@ -3740,7 +3740,7 @@ cifs_setup_session(const unsigned int xid, struct cifs_ses *ses,
if (!ses->binding) {
ses->capabilities = server->capabilities;
- if (linuxExtEnabled == 0)
+ if (!linuxExtEnabled)
ses->capabilities &= (~server->vals->cap_unix);
if (ses->auth_key.response) {