From: Fabian Frederick Date: Thu, 16 Apr 2015 19:47:07 +0000 (-0700) Subject: fs/hfsplus: use bool instead of int for is_known_namespace() return value X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=1ad8d63d63e21d711d97a4cd1105136bd0cfd647;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git 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. Signed-off-by: Fabian Frederick Cc: "David S. Miller" Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/fs/hfsplus/xattr.c b/fs/hfsplus/xattr.c index 16f545dd929b..8d62de0f4504 100644 --- a/fs/hfsplus/xattr.c +++ b/fs/hfsplus/xattr.c @@ -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) &&