Skip to content

Commit

Permalink
vfs: delete unnecessary assignment in vfs_listxattr
Browse files Browse the repository at this point in the history
It seems the first error assignment in if branch is redundant.

Signed-off-by: Chengguang Xu <cgxu519@gmx.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
  • Loading branch information
Chengguang Xu authored and Al Viro committed May 29, 2018
1 parent 965de0e commit eb91537
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion fs/xattr.c
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,6 @@ vfs_listxattr(struct dentry *dentry, char *list, size_t size)
if (error)
return error;
if (inode->i_op->listxattr && (inode->i_opflags & IOP_XATTR)) {
error = -EOPNOTSUPP;
error = inode->i_op->listxattr(dentry, list, size);
} else {
error = security_inode_listsecurity(inode, list, size);
Expand Down

0 comments on commit eb91537

Please sign in to comment.