All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] fs/nls/nls_euc-jp.c: Fix spelling typo in comment
@ 2022-09-02  8:07 Jiangshan Yi
  0 siblings, 0 replies; only message in thread
From: Jiangshan Yi @ 2022-09-02  8:07 UTC (permalink / raw)
  To: viro, akpm; +Cc: linux-fsdevel, linux-kernel, Jiangshan Yi, k2ci

From: Jiangshan Yi <yijiangshan@kylinos.cn>

Fix spelling typo in comment.

Reported-by: k2ci <kernel-bot@kylinos.cn>
Signed-off-by: Jiangshan Yi <yijiangshan@kylinos.cn>
---
 fs/nls/nls_euc-jp.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/fs/nls/nls_euc-jp.c b/fs/nls/nls_euc-jp.c
index 162b3f160353..64ea8bdb596b 100644
--- a/fs/nls/nls_euc-jp.c
+++ b/fs/nls/nls_euc-jp.c
@@ -15,7 +15,7 @@
 static struct nls_table *p_nls;
 
 #define IS_SJIS_LOW_BYTE(l)	((0x40 <= (l)) && ((l) <= 0xFC) && ((l) != 0x7F))
-/* JIS X 0208 (include NEC spesial characters) */
+/* JIS X 0208 (include NEC special characters) */
 #define IS_SJIS_JISX0208(h, l)	((((0x81 <= (h)) && ((h) <= 0x9F))	\
 				 || ((0xE0 <= (h)) && ((h) <= 0xEA)))	\
 				 && IS_SJIS_LOW_BYTE(l))
@@ -522,7 +522,7 @@ static int char2uni(const unsigned char *rawstring, int boundlen,
 				MAP_EUC2SJIS(rawstring[0], rawstring[1], 0xF5,
 					     sjis_temp[0], sjis_temp[1], 0xF0);
 			} else if (IS_EUC_JISX0208(rawstring[0], rawstring[1])) {
-				/* JIS X 0208 (include NEC spesial characters) */
+				/* JIS X 0208 (include NEC special characters) */
 				sjis_temp[0] = ((rawstring[0]-0x5f)/2) ^ 0xA0;
 				if (!(rawstring[0] & 1))
 					sjis_temp[1] = rawstring[1] - 0x02;
-- 
2.25.1


No virus found
		Checked by Hillstone Network AntiVirus


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2022-09-02  8:08 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-09-02  8:07 [PATCH] fs/nls/nls_euc-jp.c: Fix spelling typo in comment Jiangshan Yi

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.