Re: [PATCH 3/4] Simplify checks for unwanted chars

From: OGAWA Hirofumi
Date: Tue Nov 09 2004 - 11:03:08 EST


lsr@xxxxxxxxxxxxxxxxxxxxxxx writes:

> +static inline int vfat_skip_char(wchar_t w)
> {
> - for(; *s != c; ++s)
> - if (*s == 0)
> - return NULL;
> - return (wchar_t *) s;
> + return (w == 0x002E) /* . */
> + || (w == 0x0020); /* <space> */
> }

Looks good. However, I can't apply the following patch. Can you also
do it to IS_BADCHARS()?

[PATCH 1/4] Move check for invalid chars to vfat_valid_longname()
--
OGAWA Hirofumi <hirofumi@xxxxxxxxxxxxxxxxxx>
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/