Skip to content

Commit eb91537

Browse files
Chengguang XuAl Viro
authored andcommitted
vfs: delete unnecessary assignment in vfs_listxattr
It seems the first error assignment in if branch is redundant. Signed-off-by: Chengguang Xu <[email protected]> Signed-off-by: Al Viro <[email protected]>
1 parent 965de0e commit eb91537

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

fs/xattr.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -353,7 +353,6 @@ vfs_listxattr(struct dentry *dentry, char *list, size_t size)
353353
if (error)
354354
return error;
355355
if (inode->i_op->listxattr && (inode->i_opflags & IOP_XATTR)) {
356-
error = -EOPNOTSUPP;
357356
error = inode->i_op->listxattr(dentry, list, size);
358357
} else {
359358
error = security_inode_listsecurity(inode, list, size);

0 commit comments

Comments
 (0)