Skip to contentSkip to conversation

xattr: Remove meaningless error variable assignment

PATCH New Yonatan Goldschmidt 1 participant 1 message Feb 28, 2017 VFS

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 xattr: Remove meaningless error variable assignment

This is a leftover from the changes introduced in f549d6c18c.

---
 fs/xattr.c | 1 -
 1 file changed, 1 deletion(-)
fs/xattr.c +0 -1
index 7e3317cf4045..a5a494458be2 100644
@@ -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);
Signature · 1 line
2.11.1