* [PATCH] xattr: Remove meaningless error variable assignment
@ 2017-02-28 22:31 Yonatan Goldschmidt
0 siblings, 0 replies; only message in thread
From: Yonatan Goldschmidt @ 2017-02-28 22:31 UTC (permalink / raw)
To: Alexander Viro; +Cc: linux-fsdevel
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 --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);
--
2.11.1
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2017-02-28 22:31 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-02-28 22:31 [PATCH] xattr: Remove meaningless error variable assignment Yonatan Goldschmidt
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox