From: Steve French Date: Fri, 11 Nov 2005 03:28:44 +0000 (-0800) Subject: [CIFS] Reduce sparse endian warnings X-Git-Tag: v2.6.15-rc1~18^2~1 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=69114089b75e039f531a3cb9e5e9d8c610679320;p=linux-2.6 [CIFS] Reduce sparse endian warnings Signed-off-by: Steve French --- diff --git a/fs/cifs/cifs_unicode.c b/fs/cifs/cifs_unicode.c index 99a096d3f8..4e12053f08 100644 --- a/fs/cifs/cifs_unicode.c +++ b/fs/cifs/cifs_unicode.c @@ -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]); }