diff --git a/fs/xattr.c b/fs/xattr.c index d9f035610f0b..0705801a62cc 100644 --- a/fs/xattr.c +++ b/fs/xattr.c @@ -332,7 +332,7 @@ vfs_setxattr(const struct mnt_idmap *idmap, struct dentry *dentry, const void *orig_value = value; int error; - if (size && strcmp(name, XATTR_NAME_CAPS) == 0) { + if (strcmp(name, XATTR_NAME_CAPS) == 0) { error = cap_convert_nscap(idmap, dentry, &value, size); if (error < 0) return error;