Linux filesystem development
 help / color / mirror / Atom feed
From: Yonatan Goldschmidt <yon.goldschmidt@gmail.com>
To: Alexander Viro <viro@zeniv.linux.org.uk>
Cc: linux-fsdevel@vger.kernel.org
Subject: [PATCH] xattr: Remove meaningless error variable assignment
Date: Wed, 1 Mar 2017 00:31:00 +0200	[thread overview]
Message-ID: <20170228223056.GA15292@jong.localdomain> (raw)

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

                 reply	other threads:[~2017-02-28 22:31 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20170228223056.GA15292@jong.localdomain \
    --to=yon.goldschmidt@gmail.com \
    --cc=linux-fsdevel@vger.kernel.org \
    --cc=viro@zeniv.linux.org.uk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox