mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-13 08:07:32 -04:00
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 <lkp@intel.com> Signed-off-by: Namjae Jeon <namjae.jeon@samsung.com> Git-commit: f78059805fb9fc5c343e89f39cf11856d047dd60 Git-repo: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git Signed-off-by: lixiang <lixiang@codeaurora.org>
This commit is contained in:
parent
0547dcff3f
commit
d9c8e203b5
1 changed files with 0 additions and 2 deletions
|
|
@ -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))
|
||||
|
|
|
|||
Loading…
Reference in a new issue