[CIFS] Reduce sparse endian warnings

Signed-off-by: Steve French <sfrench@us.ibm.com>
This commit is contained in:
Steve French 2005-11-10 19:28:44 -08:00
parent 84cdda8a19
commit 69114089b7
1 changed files with 3 additions and 2 deletions

View File

@ -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]);
}