diff mbox

xattr: Remove meaningless error variable assignment

Message ID 20170228223056.GA15292@jong.localdomain (mailing list archive)
State New, archived
Headers show

Commit Message

Yonatan Goldschmidt Feb. 28, 2017, 10:31 p.m. UTC
This is a leftover from the changes introduced in f549d6c18c.

Signed-off-by: Yonatan Goldschmidt <yon.goldschmidt@gmail.com>
---
 fs/xattr.c | 1 -
 1 file changed, 1 deletion(-)
diff mbox

Patch

diff --git a/fs/xattr.c b/fs/xattr.c
index 7e3317cf4045..a5a494458be2 100644
--- a/fs/xattr.c
+++ b/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);