From patchwork Tue Feb 28 22:31:00 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yonatan Goldschmidt X-Patchwork-Id: 9597063 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 1B0E360429 for ; Tue, 28 Feb 2017 22:31:41 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0D25E283F9 for ; Tue, 28 Feb 2017 22:31:41 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0211828549; Tue, 28 Feb 2017 22:31:40 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.5 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7C161283F9 for ; Tue, 28 Feb 2017 22:31:40 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751565AbdB1WbR (ORCPT ); Tue, 28 Feb 2017 17:31:17 -0500 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) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:mime-version:content-disposition :user-agent; bh=kiqTaDk4ML9VlFg1CebLt1OUc5DqXAHcuCqV+iYwW2c=; b=pkOpDUwyqVcLC/elMtvElUHkvxo26CNl0KbpSyNNGaqY3/JAr1lggc3Xti6GJ/pKCd 9mxUO5LNeATIIb/2MpU2fD0WgwyZantm3zZPb21urTSA1022j/4rbfna162NrZ+Ir8PK pVetFPf7qwE7VloobKGNC2fAKZn7eFXJyWihWOl23pdNJfLC4gtH7l49IJnMXK5dzvKG cBZoX9OtUlv40J7dSAoG9PwUJBW3cRchbvDYDUuG8KPJcaORe4lqEZt/4Y5Lcn9Ullep JKz2BOy8cMkxp6RAp0xZ7JvjBa1EhvlmxRGMNJXawDiuCFt4CFIfriCcJElC/EP949WG gXQg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition:user-agent; bh=kiqTaDk4ML9VlFg1CebLt1OUc5DqXAHcuCqV+iYwW2c=; b=bF/1CeCuqAn1noGIPxp9ZkrH67kObuKU2u2aL1iCqzLvWczPeSnrMwW5cDqdkO/wcu 9TaRWS70eaNSiIJ6fj0uIG6EnWfEHVx6+MBOSO5azeOIm+BywVE+wYeKbexcyEwrY1lv 2rQAw0r7OxJcnT1EqbCLTugi11f201OeVT3yblshzNNuSCS8pxDSme6k6qCfdseQmVSU FCUKlikiWvBNbqk9rRCIZrTRlvAdlznLKiAiOwOfXD9C/Jz7ljndlwyKgRVcZA7sopAI PU5ULDZmIYx4zGy5qFnu1qO/l4krU6VT1c+aoqO+uLMmpS80ltVV1pVBPU0q9cTQ2iLS loBA== X-Gm-Message-State: AMke39k/M/o89JyW44kr9aJy3uwcFZ/PLUwgz0yI6i8K89KaxCDIb82xqvTiX3amtub+xw== X-Received: by 10.223.129.183 with SMTP id 52mr4576359wra.88.1488321063142; Tue, 28 Feb 2017 14:31:03 -0800 (PST) Received: from jong.localdomain (bzq-79-176-64-51.red.bezeqint.net. [79.176.64.51]) by smtp.gmail.com with ESMTPSA id u189sm20208358wmu.1.2017.02.28.14.31.02 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 28 Feb 2017 14:31:02 -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-Disposition: inline User-Agent: Mutt/1.8.0 (2017-02-23) Sender: linux-fsdevel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fsdevel@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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);