diff options
author | Jiapeng Zhong <abaci-bugfix@linux.alibaba.com> | 2021-01-14 18:02:23 +0800 |
---|---|---|
committer | Steve French <stfrench@microsoft.com> | 2021-01-17 19:22:24 -0600 |
commit | 16a78851e1f52eaed7034b75707d3662b4b13b77 (patch) | |
tree | b9b9d46db2d21b427e057e092dfb8a87cc6415e7 /fs | |
parent | 2be449fcf38ff7e44cf76a2bba1376e923637eb1 (diff) |
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.c | 2 |
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; } |