aboutsummaryrefslogtreecommitdiff
path: root/fs/cifs/dns_resolve.c
diff options
context:
space:
mode:
authorJeff Layton <jlayton@redhat.com>2011-04-05 15:02:37 -0400
committerGreg Kroah-Hartman <gregkh@suse.de>2011-05-21 15:13:36 -0700
commit8f18c3721794569b3ac31f30f5e3f0ac983033a5 (patch)
treeccf16fe39cb967681aa6d98830cbde64ce84d5b4 /fs/cifs/dns_resolve.c
parent3ea80459be84832670d6888ca06b3aaffe32e6a4 (diff)
cifs: clean up various nits in unicode routines (try #2)
commit 581ade4d1c025eb10421eda0d0c0a2f04447d7c5 upstream. Minor revision to the original patch. Don't abuse the __le16 variable on the stack by casting it to wchar_t and handing it off to char2uni. Declare an actual wchar_t on the stack instead. This fixes a valid sparse warning. Fix the spelling of UNI_ASTERISK. Eliminate the unneeded len_remaining variable in cifsConvertToUCS. Also, as David Howells points out. We were better off making cifsConvertToUCS *not* use put_unaligned_le16 since it means that we can't optimize the mapped characters at compile time. Switch them instead to use cpu_to_le16, and simply use put_unaligned to set them in the string. Reported-and-acked-by: David Howells <dhowells@redhat.com> Signed-off-by: Jeff Layton <jlayton@redhat.com> Signed-off-by: Steve French <sfrench@us.ibm.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'fs/cifs/dns_resolve.c')
0 files changed, 0 insertions, 0 deletions