diff options
author | 2005-11-10 19:28:44 -0800 | |
---|---|---|
committer | 2005-11-10 19:28:44 -0800 | |
commit | 69114089b75e039f531a3cb9e5e9d8c610679320 (patch) | |
tree | 11691fe4173e53c45603be45e678f3aa6728562a | |
parent | Merge with /pub/scm/linux/kernel/git/torvalds/linux-2.6.git (diff) | |
download | linux-69114089b75e039f531a3cb9e5e9d8c610679320.tar.gz linux-69114089b75e039f531a3cb9e5e9d8c610679320.tar.bz2 linux-69114089b75e039f531a3cb9e5e9d8c610679320.zip |
[CIFS] Reduce sparse endian warnings
Signed-off-by: Steve French <sfrench@us.ibm.com>
-rw-r--r-- | fs/cifs/cifs_unicode.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/fs/cifs/cifs_unicode.c b/fs/cifs/cifs_unicode.c index 99a096d3f84d..4e12053f0806 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]); } |