mirror of
https://github.com/torvalds/linux.git
synced 2024-11-21 19:41:42 +00:00
fat: fix return value of vfat_bad_char() and vfat_replace_char() functions
These functions returns boolean value not wide character. Link: https://lkml.kernel.org/r/20221226142512.13848-1-pali@kernel.org Signed-off-by: Pali Rohár <pali@kernel.org> Acked-by: OGAWA Hirofumi <hirofumi@mail.parknet.co.jp> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
This commit is contained in:
parent
e227db4d4f
commit
227849a33a
@ -200,7 +200,7 @@ static const struct dentry_operations vfat_dentry_ops = {
|
||||
|
||||
/* Characters that are undesirable in an MS-DOS file name */
|
||||
|
||||
static inline wchar_t vfat_bad_char(wchar_t w)
|
||||
static inline bool vfat_bad_char(wchar_t w)
|
||||
{
|
||||
return (w < 0x0020)
|
||||
|| (w == '*') || (w == '?') || (w == '<') || (w == '>')
|
||||
@ -208,7 +208,7 @@ static inline wchar_t vfat_bad_char(wchar_t w)
|
||||
|| (w == '\\');
|
||||
}
|
||||
|
||||
static inline wchar_t vfat_replace_char(wchar_t w)
|
||||
static inline bool vfat_replace_char(wchar_t w)
|
||||
{
|
||||
return (w == '[') || (w == ']') || (w == ';') || (w == ',')
|
||||
|| (w == '+') || (w == '=');
|
||||
|
Loading…
Reference in New Issue
Block a user