[PATCH] fs/nls/nls_euc-jp.c: Fix spelling typo in comment

From: Jiangshan Yi
Date: Fri Sep 02 2022 - 04:08:07 EST


From: Jiangshan Yi <yijiangshan@xxxxxxxxxx>

Fix spelling typo in comment.

Reported-by: k2ci <kernel-bot@xxxxxxxxxx>
Signed-off-by: Jiangshan Yi <yijiangshan@xxxxxxxxxx>
---
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