Blame SOURCES/0034-exfat-remove-unnecessary-reassignment-of-p_uniname-n.patch
|
Kmods SIG |
50e2b3 |
From f78059805fb9fc5c343e89f39cf11856d047dd60 Mon Sep 17 00:00:00 2001
|
|
Kmods SIG |
50e2b3 |
From: Namjae Jeon <namjae.jeon@samsung.com>
|
|
Kmods SIG |
50e2b3 |
Date: Mon, 1 Jun 2020 09:43:49 +0900
|
|
Kmods SIG |
50e2b3 |
Subject: [Backport f78059805fb9] exfat: remove unnecessary reassignment of
|
|
Kmods SIG |
50e2b3 |
p_uniname->name_len
|
|
Kmods SIG |
50e2b3 |
|
|
Kmods SIG |
50e2b3 |
kbuild test robot reported :
|
|
Kmods SIG |
50e2b3 |
|
|
Kmods SIG |
50e2b3 |
src/nls.c:531:22: warning: Variable 'p_uniname->name_len'
|
|
Kmods SIG |
50e2b3 |
is reassigned a value before the old one has been used.
|
|
Kmods SIG |
50e2b3 |
|
|
Kmods SIG |
50e2b3 |
The reassignment of p_uniname->name_len is not needed and remove it.
|
|
Kmods SIG |
50e2b3 |
|
|
Kmods SIG |
50e2b3 |
Reported-by: kbuild test robot <lkp@intel.com>
|
|
Kmods SIG |
50e2b3 |
Signed-off-by: Namjae Jeon <namjae.jeon@samsung.com>
|
|
Kmods SIG |
50e2b3 |
---
|
|
Kmods SIG |
50e2b3 |
src/nls.c | 2 --
|
|
Kmods SIG |
50e2b3 |
1 file changed, 2 deletions(-)
|
|
Kmods SIG |
50e2b3 |
|
|
Kmods SIG |
50e2b3 |
diff --git a/src/nls.c b/src/nls.c
|
|
Kmods SIG |
50e2b3 |
index 19321773dd078a42f8c9659e15032502b33bddcd..c1ec05695497445934ac8f2d537ccd131e5d7f5c 100644
|
|
Kmods SIG |
50e2b3 |
--- a/src/nls.c
|
|
Kmods SIG |
50e2b3 |
+++ b/src/nls.c
|
|
Kmods SIG |
50e2b3 |
@@ -514,8 +514,6 @@ static int exfat_utf8_to_utf16(struct super_block *sb,
|
|
Kmods SIG |
50e2b3 |
return -ENAMETOOLONG;
|
|
Kmods SIG |
50e2b3 |
}
|
|
Kmods SIG |
50e2b3 |
|
|
Kmods SIG |
50e2b3 |
- p_uniname->name_len = unilen & 0xFF;
|
|
Kmods SIG |
50e2b3 |
-
|
|
Kmods SIG |
50e2b3 |
for (i = 0; i < unilen; i++) {
|
|
Kmods SIG |
50e2b3 |
if (*uniname < 0x0020 ||
|
|
Kmods SIG |
50e2b3 |
exfat_wstrchr(bad_uni_chars, *uniname))
|
|
Kmods SIG |
50e2b3 |
--
|
|
Kmods SIG |
50e2b3 |
2.31.1
|
|
Kmods SIG |
50e2b3 |
|