]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commitdiff
exfat: remove unnecessary reassignment of p_uniname->name_len
authorNamjae Jeon <namjae.jeon@samsung.com>
Mon, 1 Jun 2020 00:43:49 +0000 (09:43 +0900)
committerNamjae Jeon <namjae.jeon@samsung.com>
Tue, 9 Jun 2020 07:49:32 +0000 (16:49 +0900)
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>
fs/exfat/nls.c

index 19321773dd078a42f8c9659e15032502b33bddcd..c1ec05695497445934ac8f2d537ccd131e5d7f5c 100644 (file)
@@ -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))