From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wr0-f193.google.com ([209.85.128.193]:34105 "EHLO mail-wr0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751447AbdB1WbO (ORCPT ); Tue, 28 Feb 2017 17:31:14 -0500 Received: by mail-wr0-f193.google.com with SMTP id u48so3308652wrc.1 for ; Tue, 28 Feb 2017 14:31:04 -0800 (PST) Date: Wed, 1 Mar 2017 00:31:00 +0200 From: Yonatan Goldschmidt To: Alexander Viro Cc: linux-fsdevel@vger.kernel.org Subject: [PATCH] xattr: Remove meaningless error variable assignment Message-ID: <20170228223056.GA15292@jong.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Sender: linux-fsdevel-owner@vger.kernel.org List-ID: This is a leftover from the changes introduced in f549d6c18c. Signed-off-by: Yonatan Goldschmidt --- 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