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>
This commit is contained in:
parent
2be449fcf3
commit
16a78851e1
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue