Commit 16a78851 authored by Jiapeng Zhong's avatar Jiapeng Zhong Committed by Steve French
Browse files

fs/cifs: Simplify bool comparison.



Fix the follow warnings:

./fs/cifs/connect.c: WARNING: Comparison of 0/1 to bool variable

Reported-by: default avatarAbaci Robot <abaci@linux.alibaba.com>
Signed-off-by: default avatarJiapeng Zhong <abaci-bugfix@linux.alibaba.com>
Signed-off-by: default avatarSteve French <stfrench@microsoft.com>
parent 2be449fc
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;
	}