public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] fat: use nls_tolower simplify code
@ 2024-11-28  3:12 Wang Jianjian
  2024-11-28  4:52 ` OGAWA Hirofumi
  2024-11-28 16:55 ` Markus Elfring
  0 siblings, 2 replies; 3+ messages in thread
From: Wang Jianjian @ 2024-11-28  3:12 UTC (permalink / raw)
  To: OGAWA Hirofumi, linux-kernel; +Cc: wangjianjian0, Wang Jianjian

Signed-off-by: Wang Jianjian <wangjianjian3@huawei.com>
---
 fs/fat/dir.c | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/fs/fat/dir.c b/fs/fat/dir.c
index acbec5bdd521..88bf16204aab 100644
--- a/fs/fat/dir.c
+++ b/fs/fat/dir.c
@@ -214,10 +214,7 @@ fat_short2lower_uni(struct nls_table *t, unsigned char *c,
 		*uni = 0x003f;	/* a question mark */
 		charlen = 1;
 	} else if (charlen <= 1) {
-		unsigned char nc = t->charset2lower[*c];
-
-		if (!nc)
-			nc = *c;
+		unsigned char nc = nls_tolower(t, *c);
 
 		charlen = t->char2uni(&nc, 1, uni);
 		if (charlen < 0) {
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2024-11-28 16:55 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-11-28  3:12 [PATCH] fat: use nls_tolower simplify code Wang Jianjian
2024-11-28  4:52 ` OGAWA Hirofumi
2024-11-28 16:55 ` Markus Elfring

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox