Skip to content

Commit

Permalink
fs/hfsplus: use bool instead of int for is_known_namespace() return v…
Browse files Browse the repository at this point in the history
…alue

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 <[email protected]>
Cc: "David S. Miller" <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
Fabian Frederick authored and torvalds committed Apr 17, 2015
1 parent 73d28d5 commit 1ad8d63
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/hfsplus/xattr.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) &&
Expand Down

0 comments on commit 1ad8d63

Please sign in to comment.