fs/cifs: Simplify bool comparison.
authorJiapeng Zhong <abaci-bugfix@linux.alibaba.com>
Thu, 14 Jan 2021 10:02:23 +0000 (18:02 +0800)
committerSteve French <stfrench@microsoft.com>
Mon, 18 Jan 2021 01:22:24 +0000 (19:22 -0600)
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>
fs/cifs/connect.c

index 7c3325c0fadc87184c8816e124f46273e9fb1eef..c8ef24bac94fc7015df7358f52a2478ec8355f74 100644 (file)
@@ -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;
        }