diff options
author | Jeff Layton <jlayton@redhat.com> | 2009-05-02 06:59:34 +0200 |
---|---|---|
committer | Steve French <sfrench@us.ibm.com> | 2009-05-02 06:59:34 +0200 |
commit | 341060273232a2df0d1a7fa53abc661fcf22747c (patch) | |
tree | 60af81806205be40f3f60773b98bebc33ce97153 /fs/cifs/cifs_unicode.c | |
parent | [CIFS] NTLMSSP support moving into new file, old dead code removed (diff) | |
download | linux-341060273232a2df0d1a7fa53abc661fcf22747c.tar.xz linux-341060273232a2df0d1a7fa53abc661fcf22747c.zip |
[CIFS] remove cifs_strfromUCS_le
Signed-off-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Steve French <sfrench@us.ibm.com>
Diffstat (limited to 'fs/cifs/cifs_unicode.c')
-rw-r--r-- | fs/cifs/cifs_unicode.c | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/fs/cifs/cifs_unicode.c b/fs/cifs/cifs_unicode.c index 6382720acf7c..60e3c4253de0 100644 --- a/fs/cifs/cifs_unicode.c +++ b/fs/cifs/cifs_unicode.c @@ -181,35 +181,6 @@ cifs_from_ucs2(char *to, const __le16 *from, int tolen, int fromlen, } /* - * NAME: cifs_strfromUCS() - * - * FUNCTION: Convert little-endian unicode string to character string - * - */ -int -cifs_strfromUCS_le(char *to, const __le16 *from, - int len, const struct nls_table *codepage) -{ - int i; - int outlen = 0; - - for (i = 0; (i < len) && from[i]; i++) { - int charlen; - /* 2.4.0 kernel or greater */ - charlen = - codepage->uni2char(le16_to_cpu(from[i]), &to[outlen], - NLS_MAX_CHARSET_SIZE); - if (charlen > 0) { - outlen += charlen; - } else { - to[outlen++] = '?'; - } - } - to[outlen] = 0; - return outlen; -} - -/* * NAME: cifs_strtoUCS() * * FUNCTION: Convert character string to unicode string |