Skip to content

Commit ed6b192

Browse files
YANG LIsmfrench
authored andcommitted
cifs: connect: style: Simplify bool comparison
Fix the following coccicheck warning: ./fs/cifs/connect.c:3740:6-21: WARNING: Comparison of 0/1 to bool variable Signed-off-by: YANG LI <abaci-bugfix@linux.alibaba.com> Reported-by: Abaci Robot<abaci@linux.alibaba.com> Signed-off-by: Steve French <stfrench@microsoft.com>
1 parent c13e7af commit ed6b192

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
@@ -3740,7 +3740,7 @@ cifs_setup_session(const unsigned int xid, struct cifs_ses *ses,
37403740

37413741
if (!ses->binding) {
37423742
ses->capabilities = server->capabilities;
3743-
if (linuxExtEnabled == 0)
3743+
if (!linuxExtEnabled)
37443744
ses->capabilities &= (~server->vals->cap_unix);
37453745

37463746
if (ses->auth_key.response) {

0 commit comments

Comments
 (0)