summaryrefslogtreecommitdiffstats
path: root/fs/cifs
diff options
context:
space:
mode:
authorYANG LI <abaci-bugfix@linux.alibaba.com>2021-01-11 10:15:28 +0100
committerSteve French <stfrench@microsoft.com>2021-01-13 19:55:40 +0100
commited6b1920f84bc5c3d666dc383ff3bbc60f0f62a5 (patch)
tree6b5abe5ee802e8389b20a70dbbedfb761b8f3beb /fs/cifs
parentfs: cifs: remove unneeded variable in smb3_fs_context_dup (diff)
downloadlinux-ed6b1920f84bc5c3d666dc383ff3bbc60f0f62a5.tar.xz
linux-ed6b1920f84bc5c3d666dc383ff3bbc60f0f62a5.zip
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/cifs')
-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) {