Skip to content
Snippets Groups Projects
Commit eb915375 authored by Chengguang Xu's avatar Chengguang Xu Committed by Al Viro
Browse files

vfs: delete unnecessary assignment in vfs_listxattr


It seems the first error assignment in if branch is redundant.

Signed-off-by: default avatarChengguang Xu <cgxu519@gmx.com>
Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent 965de0ec
Branches
No related tags found
No related merge requests found
...@@ -353,7 +353,6 @@ vfs_listxattr(struct dentry *dentry, char *list, size_t size) ...@@ -353,7 +353,6 @@ vfs_listxattr(struct dentry *dentry, char *list, size_t size)
if (error) if (error)
return error; return error;
if (inode->i_op->listxattr && (inode->i_opflags & IOP_XATTR)) { if (inode->i_op->listxattr && (inode->i_opflags & IOP_XATTR)) {
error = -EOPNOTSUPP;
error = inode->i_op->listxattr(dentry, list, size); error = inode->i_op->listxattr(dentry, list, size);
} else { } else {
error = security_inode_listsecurity(inode, list, size); error = security_inode_listsecurity(inode, list, size);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment