提交 69114089 编写于 作者: S Steve French

[CIFS] Reduce sparse endian warnings

Signed-off-by: NSteve French <sfrench@us.ibm.com>
上级 84cdda8a
......@@ -74,10 +74,11 @@ cifs_strtoUCS(wchar_t * to, const char *from, int len,
cERROR(1,
("cifs_strtoUCS: char2uni returned %d",
charlen));
to[i] = cpu_to_le16(0x003f); /* a question mark */
/* A question mark */
to[i] = (wchar_t)cpu_to_le16(0x003f);
charlen = 1;
} else
to[i] = cpu_to_le16(to[i]);
to[i] = (wchar_t)cpu_to_le16(to[i]);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册