Skip to content

Commit 16a7885

Browse files
Jiapeng Zhongsmfrench
authored andcommitted
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>
1 parent 2be449f commit 16a7885

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

fs/cifs/connect.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2628,7 +2628,7 @@ void reset_cifs_unix_caps(unsigned int xid, struct cifs_tcon *tcon,
26282628
} else if (ctx)
26292629
tcon->unix_ext = 1; /* Unix Extensions supported */
26302630

2631-
if (tcon->unix_ext == 0) {
2631+
if (!tcon->unix_ext) {
26322632
cifs_dbg(FYI, "Unix extensions disabled so not set on reconnect\n");
26332633
return;
26342634
}

0 commit comments

Comments
 (0)