summaryrefslogtreecommitdiff
path: root/fs/exfat/nls.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/exfat/nls.c')
-rw-r--r--fs/exfat/nls.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/fs/exfat/nls.c b/fs/exfat/nls.c
index 8243d94ceaf4..57db08a5271c 100644
--- a/fs/exfat/nls.c
+++ b/fs/exfat/nls.c
@@ -616,9 +616,6 @@ static int exfat_nls_to_ucs2(struct super_block *sb,
unilen++;
}
- if (p_cstring[i] != '\0')
- lossy |= NLS_NAME_OVERLEN;
-
*uniname = '\0';
p_uniname->name_len = unilen;
p_uniname->name_hash = exfat_calc_chksum16(upname, unilen << 1, 0,