diff options
author | Namjae Jeon <namjae.jeon@samsung.com> | 2020-06-01 09:43:49 +0900 |
---|---|---|
committer | Namjae Jeon <namjae.jeon@samsung.com> | 2020-06-09 16:49:32 +0900 |
commit | f78059805fb9fc5c343e89f39cf11856d047dd60 (patch) | |
tree | d8f65d567df331b589906b9cf5c96d65452dbd04 /fs/exfat | |
parent | 5875bf287d95314c58add01184f361cc5aa38429 (diff) | |
download | linux-stable-f78059805fb9fc5c343e89f39cf11856d047dd60.tar.gz linux-stable-f78059805fb9fc5c343e89f39cf11856d047dd60.tar.bz2 linux-stable-f78059805fb9fc5c343e89f39cf11856d047dd60.zip |
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>
Diffstat (limited to 'fs/exfat')
-rw-r--r-- | fs/exfat/nls.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/fs/exfat/nls.c b/fs/exfat/nls.c index 19321773dd07..c1ec05695497 100644 --- a/fs/exfat/nls.c +++ b/fs/exfat/nls.c @@ -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)) |