projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
84cdda8
)
[CIFS] Reduce sparse endian warnings
author
Steve French
<sfrench@us.ibm.com>
Fri, 11 Nov 2005 03:28:44 +0000
(19:28 -0800)
committer
Steve French
<sfrench@us.ibm.com>
Fri, 11 Nov 2005 03:28:44 +0000
(19:28 -0800)
Signed-off-by: Steve French <sfrench@us.ibm.com>
fs/cifs/cifs_unicode.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/cifs/cifs_unicode.c
b/fs/cifs/cifs_unicode.c
index 99a096d3f84d679d668807d5081baf4beeabc95f..4e12053f0806bed870906a3280d428ad8a9d9186 100644
(file)
--- 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]);
}