xfs: global error sign conversion
[deliverable/linux.git] / fs / xfs / xfs_xattr.c
index 78ed92a46fdd3323c9bada9a35257f839285c630..93455b99804155d11c748239fde20700eea76c05 100644 (file)
@@ -49,7 +49,7 @@ xfs_xattr_get(struct dentry *dentry, const char *name,
                value = NULL;
        }
 
-       error = -xfs_attr_get(ip, (unsigned char *)name, value, &asize, xflags);
+       error = xfs_attr_get(ip, (unsigned char *)name, value, &asize, xflags);
        if (error)
                return error;
        return asize;
@@ -71,8 +71,8 @@ xfs_xattr_set(struct dentry *dentry, const char *name, const void *value,
                xflags |= ATTR_REPLACE;
 
        if (!value)
-               return -xfs_attr_remove(ip, (unsigned char *)name, xflags);
-       return -xfs_attr_set(ip, (unsigned char *)name,
+               return xfs_attr_remove(ip, (unsigned char *)name, xflags);
+       return xfs_attr_set(ip, (unsigned char *)name,
                                (void *)value, size, xflags);
 }
 
This page took 0.025271 seconds and 5 git commands to generate.