fs/hfsplus: use bool instead of int for is_known_namespace() return value
PATCH 1/1 fs/hfsplus: use bool instead of int for is_known_namespace() return value
is_known_namespace() only returns true/false. Also remove inline and let compiler decide what to do with static functions.
Inspired-by "David S. Miller" <[email protected]>
Cc Andrew Morton <[email protected]>
Signed-off-by Fabian Frederick <[email protected]>
--- fs/hfsplus/xattr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
fs/hfsplus/xattr.c +1 -1
@@ -44,7 +44,7 @@ static int strcmp_xattr_acl(const char *name)return -1 ; } -static inline int is_known_namespace (const char *name) +static bool is_known_namespace (const char *name) { if (strncmp(name, XATTR_SYSTEM_PREFIX, XATTR_SYSTEM_PREFIX_LEN) && strncmp(name, XATTR_USER_PREFIX, XATTR_USER_PREFIX_LEN) &&
Signature · 1 line
1.9.1