From f78059805fb9fc5c343e89f39cf11856d047dd60 Mon Sep 17 00:00:00 2001 From: Namjae Jeon Date: Mon, 1 Jun 2020 09:43:49 +0900 Subject: [Backport f78059805fb9] exfat: remove unnecessary reassignment of p_uniname->name_len kbuild test robot reported : src/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 Signed-off-by: Namjae Jeon --- src/nls.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/nls.c b/src/nls.c index 19321773dd078a42f8c9659e15032502b33bddcd..c1ec05695497445934ac8f2d537ccd131e5d7f5c 100644 --- a/src/nls.c +++ b/src/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)) -- 2.31.1