Skip to content

Commit

Permalink
[CIFS] Reduce sparse endian warnings
Browse files Browse the repository at this point in the history
Signed-off-by: Steve French <sfrench@us.ibm.com>
  • Loading branch information
Steve French committed Nov 11, 2005
1 parent 84cdda8 commit 6911408
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions fs/cifs/cifs_unicode.c
Original file line number Diff line number Diff line change
Expand Up @@ -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]);

}

Expand Down

0 comments on commit 6911408

Please sign in to comment.