瀏覽代碼

[CIFS] Fix compiler warning with previous patch

Signed-off-by: Steve French <sfrench@us.ibm.com>
Steve French 18 年之前
父節點
當前提交
1a70d6529a
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      fs/cifs/cifssmb.c

+ 1 - 1
fs/cifs/cifssmb.c

@@ -477,7 +477,7 @@ CIFSSMBNegotiate(unsigned int xid, struct cifsSesInfo *ses)
 			server->capabilities = CAP_MPX_MODE;
 			server->capabilities = CAP_MPX_MODE;
 		}
 		}
 		tmp = (__s16)le16_to_cpu(rsp->ServerTimeZone);
 		tmp = (__s16)le16_to_cpu(rsp->ServerTimeZone);
-		if (tmp == 0xffff) {
+		if (tmp == -1) {
 			/* OS/2 often does not set timezone therefore
 			/* OS/2 often does not set timezone therefore
 			 * we must use server time to calc time zone.
 			 * we must use server time to calc time zone.
 			 * Could deviate slightly from the right zone.
 			 * Could deviate slightly from the right zone.