Skip to contentSkip to conversation

fs/hfsplus: use bool instead of int for is_known_namespace() return value

PATCH New Fabian Frederick 1 participant 1 message Mar 9, 2015 Hfsplus filesystem

lore
Share & tools
lore
#0 lore raw

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.

---
 fs/hfsplus/xattr.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
fs/hfsplus/xattr.c +1 -1
index 16f545d..8d62de0 100644
@@ -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