summaryrefslogtreecommitdiff
path: root/lib/sqfs
diff options
context:
space:
mode:
Diffstat (limited to 'lib/sqfs')
-rw-r--r--lib/sqfs/xattr.c5
-rw-r--r--lib/sqfs/xattr_writer.c2
2 files changed, 1 insertions, 6 deletions
diff --git a/lib/sqfs/xattr.c b/lib/sqfs/xattr.c
index 985fc95..6ce6b9a 100644
--- a/lib/sqfs/xattr.c
+++ b/lib/sqfs/xattr.c
@@ -46,8 +46,3 @@ const char *sqfs_get_xattr_prefix(E_SQFS_XATTR_TYPE id)
return NULL;
}
-
-bool sqfs_has_xattr(const char *key)
-{
- return sqfs_get_xattr_prefix_id(key) >= 0;
-}
diff --git a/lib/sqfs/xattr_writer.c b/lib/sqfs/xattr_writer.c
index 18ca657..81ee26c 100644
--- a/lib/sqfs/xattr_writer.c
+++ b/lib/sqfs/xattr_writer.c
@@ -169,7 +169,7 @@ int sqfs_xattr_writer_add(sqfs_xattr_writer_t *xwr, const char *key,
char *value_str;
int err;
- if (!sqfs_has_xattr(key))
+ if (sqfs_get_xattr_prefix_id(key) < 0)
return SQFS_ERROR_UNSUPPORTED;
/* resolve key and value into unique, incremental IDs */