aboutsummaryrefslogtreecommitdiffstats
path: root/fs/cifs/readdir.c
diff options
context:
space:
mode:
authorSteve French <sfrench@us.ibm.com>2005-11-11 18:18:19 -0500
committerSteve French <sfrench@us.ibm.com>2005-11-11 18:18:19 -0500
commite89dc9209692293434da45ec31826a55becb91c0 (patch)
tree171ebb84c30467cbff8a5bf8213dbf40e64d84f7 /fs/cifs/readdir.c
parent8b94bcb923dff923a5a5b7c6f890702a54cb19cf (diff)
[CIFS] Cleanup sparse warnings for unicode little endian casts
Following Shaggy's suggestion, do a better job on the unicode string handling routines in cifs in specifying that the wchar_t are really little endian widechars (__le16). Signed-off-by: Steve French <sfrench@us.ibm.com>
Diffstat (limited to 'fs/cifs/readdir.c')
-rw-r--r--fs/cifs/readdir.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/cifs/readdir.c b/fs/cifs/readdir.c
index fc615670f4b8..9b7e0ff9584b 100644
--- a/fs/cifs/readdir.c
+++ b/fs/cifs/readdir.c
@@ -705,7 +705,7 @@ static int cifs_get_name_from_search_buf(struct qstr *pqst,
705 (__le16 *)filename, len/2, nlt); 705 (__le16 *)filename, len/2, nlt);
706 else 706 else
707 pqst->len = cifs_strfromUCS_le((char *)pqst->name, 707 pqst->len = cifs_strfromUCS_le((char *)pqst->name,
708 (wchar_t *)filename,len/2,nlt); 708 (__le16 *)filename,len/2,nlt);
709 } else { 709 } else {
710 pqst->name = filename; 710 pqst->name = filename;
711 pqst->len = len; 711 pqst->len = len;