[PATCH] nls: Fix utf8s_to_utf16s parameter type in declaration and definition

From: ye.xingchen
Date: Thu Mar 13 2025 - 04:10:21 EST


From: YeXingchen <ye.xingchen@xxxxxxxxxx>

The declaration of utf8s_to_utf16s in the header file uses
bool maxlen as the parameter type, while the definition uses bool maxout.

This patch aligns the parameter name in the definition with the
declaration,changing inlen to len,maxout to maxlen to ensure consistency.

Signed-off-by: YeXingchen <ye.xingchen@xxxxxxxxxx>
---
fs/nls/nls_base.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/fs/nls/nls_base.c b/fs/nls/nls_base.c
index 18d597e49a19..547227669348 100644
--- a/fs/nls/nls_base.c
+++ b/fs/nls/nls_base.c
@@ -129,8 +129,8 @@ static inline void put_utf16(wchar_t *s, unsigned c, enum utf16_endian endian)
}
}

-int utf8s_to_utf16s(const u8 *s, int inlen, enum utf16_endian endian,
- wchar_t *pwcs, int maxout)
+int utf8s_to_utf16s(const u8 *s, int len, enum utf16_endian endian,
+ wchar_t *pwcs, int maxlen)
{
u16 *op;
int size;
--
2.25.1