Skip to content

Commit f780598

Browse files
committed
exfat: remove unnecessary reassignment of p_uniname->name_len
kbuild test robot reported : fs/exfat/nls.c:531:22: warning: Variable 'p_uniname->name_len' is reassigned a value before the old one has been used. The reassignment of p_uniname->name_len is not needed and remove it. Reported-by: kbuild test robot <[email protected]> Signed-off-by: Namjae Jeon <[email protected]>
1 parent 5875bf2 commit f780598

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

fs/exfat/nls.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -514,8 +514,6 @@ static int exfat_utf8_to_utf16(struct super_block *sb,
514514
return -ENAMETOOLONG;
515515
}
516516

517-
p_uniname->name_len = unilen & 0xFF;
518-
519517
for (i = 0; i < unilen; i++) {
520518
if (*uniname < 0x0020 ||
521519
exfat_wstrchr(bad_uni_chars, *uniname))

0 commit comments

Comments
 (0)