diff options
author | Tom Rix <trix@redhat.com> | 2023-03-24 13:30:56 -0400 |
---|---|---|
committer | Steve French <stfrench@microsoft.com> | 2023-03-25 14:54:06 -0500 |
commit | 2824861773eb512b37547516d81ef78108032cb2 (patch) | |
tree | 866ef57d26ccd5ea5659611de043da904e7bd886 | |
parent | e416ea62a9166e6075a07a970cc5bf79255d2700 (diff) | |
download | linux-2824861773eb512b37547516d81ef78108032cb2.tar.gz |
ksmbd: remove unused is_char_allowed function
clang with W=1 reports
fs/ksmbd/unicode.c:122:19: error: unused function
'is_char_allowed' [-Werror,-Wunused-function]
static inline int is_char_allowed(char *ch)
^
This function is not used so remove it.
Signed-off-by: Tom Rix <trix@redhat.com>
Reviewed-by: Sergey Senozhatsky <senozhatsky@chromium.org>
Acked-by: Namjae Jeon <linkinjeon@kernel.org>
Signed-off-by: Steve French <stfrench@microsoft.com>
-rw-r--r-- | fs/ksmbd/unicode.c | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/fs/ksmbd/unicode.c b/fs/ksmbd/unicode.c index a0db699ddafd..9ae676906ed3 100644 --- a/fs/ksmbd/unicode.c +++ b/fs/ksmbd/unicode.c @@ -114,24 +114,6 @@ cp_convert: } /* - * is_char_allowed() - check for valid character - * @ch: input character to be checked - * - * Return: 1 if char is allowed, otherwise 0 - */ -static inline int is_char_allowed(char *ch) -{ - /* check for control chars, wildcards etc. */ - if (!(*ch & 0x80) && - (*ch <= 0x1f || - *ch == '?' || *ch == '"' || *ch == '<' || - *ch == '>' || *ch == '|')) - return 0; - - return 1; -} - -/* * smb_from_utf16() - convert utf16le string to local charset * @to: destination buffer * @from: source buffer |