Browse Source

vfs: delete unnecessary assignment in vfs_listxattr

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>
Chengguang Xu 7 years ago
parent
commit
eb91537575
1 changed files with 0 additions and 1 deletions
  1. 0 1
      fs/xattr.c

+ 0 - 1
fs/xattr.c

@@ -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);