diff options
author | Chengguang Xu <cgxu519@gmx.com> | 2018-05-16 01:34:52 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2018-05-29 13:22:41 -0400 |
commit | eb915375757cd32c5abf7aea4caa76fe7edf8ef4 (patch) | |
tree | 3464ea0ccc76b71095384e5fdd7658c50d37aca2 | |
parent | 965de0ec351a580874dcc4c1eaeae78dd9d1c369 (diff) |
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>
-rw-r--r-- | fs/xattr.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/fs/xattr.c b/fs/xattr.c index 28e1dfc27b95..f9cb1db187b7 100644 --- a/fs/xattr.c +++ b/fs/xattr.c | |||
@@ -353,7 +353,6 @@ vfs_listxattr(struct dentry *dentry, char *list, size_t size) | |||
353 | if (error) | 353 | if (error) |
354 | return error; | 354 | return error; |
355 | if (inode->i_op->listxattr && (inode->i_opflags & IOP_XATTR)) { | 355 | if (inode->i_op->listxattr && (inode->i_opflags & IOP_XATTR)) { |
356 | error = -EOPNOTSUPP; | ||
357 | error = inode->i_op->listxattr(dentry, list, size); | 356 | error = inode->i_op->listxattr(dentry, list, size); |
358 | } else { | 357 | } else { |
359 | error = security_inode_listsecurity(inode, list, size); | 358 | error = security_inode_listsecurity(inode, list, size); |