summaryrefslogtreecommitdiff
path: root/lib/sqfs
diff options
context:
space:
mode:
authorDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2019-11-24 15:59:54 +0100
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2019-11-24 16:05:01 +0100
commitc8d234ddcf42f4a2d3e30122877d792fabd92f68 (patch)
tree630ecf78f2f22aa1e2bbc6631d5179eab8e52c2e /lib/sqfs
parent58c012f6fa5bbda88a849b7ecf93519400ee0a43 (diff)
Cleanup: remove the entirely redundant sqfs_has_xattr function
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
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 */