xattrs: remove check for check_id_dupl() failure
Now MEM_ERROR deals with out of memory, check_id_dupl()
can no longer return failure. Remove check for failure.
Signed-off-by: Phillip Lougher <phillip@squashfs.org.uk>
diff --git a/squashfs-tools/xattr.c b/squashfs-tools/xattr.c
index 5d72271..b9e504d 100644
--- a/squashfs-tools/xattr.c
+++ b/squashfs-tools/xattr.c
@@ -476,8 +476,6 @@
* id
*/
xattr_dupl = check_id_dupl(xattr_list, xattrs);
- if (xattr_dupl == NULL)
- return SQUASHFS_INVALID_XATTR;
if(xattr_dupl->xattr_id != SQUASHFS_INVALID_XATTR)
return xattr_dupl->xattr_id;