Skip to content

Commit

Permalink
exfat: remove unnecessary reassignment of p_uniname->name_len
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
namjaejeon committed Jun 9, 2020
1 parent 5875bf2 commit f780598
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions fs/exfat/nls.c
Original file line number Diff line number Diff line change
Expand Up @@ -514,8 +514,6 @@ static int exfat_utf8_to_utf16(struct super_block *sb,
return -ENAMETOOLONG;
}

p_uniname->name_len = unilen & 0xFF;

for (i = 0; i < unilen; i++) {
if (*uniname < 0x0020 ||
exfat_wstrchr(bad_uni_chars, *uniname))
Expand Down

0 comments on commit f780598

Please sign in to comment.