projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2be449f
)
fs/cifs: Simplify bool comparison.
author
Jiapeng Zhong
<abaci-bugfix@linux.alibaba.com>
Thu, 14 Jan 2021 10:02:23 +0000
(18:02 +0800)
committer
Steve 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
patch
|
blob
|
history
diff --git
a/fs/cifs/connect.c
b/fs/cifs/connect.c
index 7c3325c0fadc87184c8816e124f46273e9fb1eef..c8ef24bac94fc7015df7358f52a2478ec8355f74 100644
(file)
--- 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;
}