]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ksmbd: remove unused is_char_allowed function
authorTom Rix <trix@redhat.com>
Sun, 31 Dec 2023 07:12:31 +0000 (16:12 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 5 Jan 2024 14:18:28 +0000 (15:18 +0100)
commit4ef3fd2f85bb1bcaabb9fd2c5ad8d7d99d0c8e90
tree01961bf572c064b8c171799137f88d518fbe35c5
parent226aaaa59365f22f900b58e77f3ee6f87140d6e8
ksmbd: remove unused is_char_allowed function

[ Upstream commit 2824861773eb512b37547516d81ef78108032cb2 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/smb/server/unicode.c