summaryrefslogtreecommitdiff
path: root/fs
diff options
context:
space:
mode:
authorJiapeng Zhong <abaci-bugfix@linux.alibaba.com>2021-01-14 13:02:23 +0300
committerSteve French <stfrench@microsoft.com>2021-01-18 04:22:24 +0300
commit16a78851e1f52eaed7034b75707d3662b4b13b77 (patch)
treeb9b9d46db2d21b427e057e092dfb8a87cc6415e7 /fs
parent2be449fcf38ff7e44cf76a2bba1376e923637eb1 (diff)
downloadlinux-16a78851e1f52eaed7034b75707d3662b4b13b77.tar.xz
fs/cifs: Simplify bool comparison.
Fix the follow warnings: ./fs/cifs/connect.c: WARNING: Comparison of 0/1 to bool variable Reported-by: Abaci Robot <abaci@linux.alibaba.com> Signed-off-by: Jiapeng Zhong <abaci-bugfix@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 7c3325c0fadc..c8ef24bac94f 100644
--- a/fs/cifs/connect.c
+++ b/fs/cifs/connect.c
@@ -2628,7 +2628,7 @@ void reset_cifs_unix_caps(unsigned int xid, struct cifs_tcon *tcon,
} else if (ctx)
tcon->unix_ext = 1; /* Unix Extensions supported */
- if (tcon->unix_ext == 0) {
+ if (!tcon->unix_ext) {
cifs_dbg(FYI, "Unix extensions disabled so not set on reconnect\n");
return;
}