diff --git a/fs/cifs/connect.c b/fs/cifs/connect.c index 7c3325c0fadc87184c8816e124f46273e9fb1eef..c8ef24bac94fc7015df7358f52a2478ec8355f74 100644 --- 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; }