From patchwork Sun Jul 31 20:34:31 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Salah Triki X-Patchwork-Id: 9253533 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 7E2AC6048F for ; Sun, 31 Jul 2016 20:36:20 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 67E0828412 for ; Sun, 31 Jul 2016 20:36:20 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5C74C2848F; Sun, 31 Jul 2016 20:36:20 +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.8 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, T_DKIM_INVALID 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 F2EB528481 for ; Sun, 31 Jul 2016 20:36:19 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752155AbcGaUfb (ORCPT ); Sun, 31 Jul 2016 16:35:31 -0400 Received: from mail-wm0-f68.google.com ([74.125.82.68]:36553 "EHLO mail-wm0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751621AbcGaUe4 (ORCPT ); Sun, 31 Jul 2016 16:34:56 -0400 Received: by mail-wm0-f68.google.com with SMTP id x83so23541264wma.3; Sun, 31 Jul 2016 13:34:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references :in-reply-to:references; bh=IOW1/pBajARSxzzIaYvQapWrDeso/6IqCkcwlgTVwzg=; b=rUF+5yTSJN7yL13fdTRLeouocVywy8n3zkbv/6eBChb7Uux/d13UCUYLSutNtjNVHU IX8GrWzSACLjd3cTp2ZkTQ5Mf/YuAS+GqIXwzsj7Fj6V/h80zBSl8sVPwg9BKINxyrpC XAHmoNTWMDrTGdt7FnFMLcj0hXTNo2ICLqw1EplwGi7Y4SMFtpTFwLUZfMSg/wMf7Cuq X4R8jBFu3502WzRBjTBD4gJ52uQ3yU/Y9CNwGi8y8113jxBOnkcR16mtetY0ZBR2+WKZ THuoUcI7YXVyyUpqEHg4BrAL7xenjDXYMapQtZX5yMkQFaYeH3/HVerlvuwIHi+plz/G VyXg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:in-reply-to:references; bh=IOW1/pBajARSxzzIaYvQapWrDeso/6IqCkcwlgTVwzg=; b=Z7tEaUgfr0YvcvWip5iBinF1Lfl9Gww1JACmwT43/UPo2dCwjGKyWc2ea3KIy+uH8E uieQ4dlB5/oHaJlco75DGHkMUkyrxmdBHvGAojBe6xAhkRkUMAJCdaOqfZjYFIzLOqgw QbyniLpHckCfPg0/T+WRMAiLMtMQXJOQYi2wXnWG+CX6cmzZ3n21PXt6/0z/Nh2eJT0W iNOq2ZVR51RZ9Qbq0MQGJxEiLB6zmWuqCYKgFClEK+0rVHLv+P9/n+XssUK2mfJ3ZfVq uY2iLG8afDzTd8Ujmrij7DGbi70Mm7yiq/HYuquB11EGEW5LhpgVzjpGhXkQTXCpWCRw x/jQ== X-Gm-Message-State: AEkoousLLjbEqLlRcCUEc/yFPSjj4ge2ezydNGlG5tDr82AwAIPLnaIDusEsYuqpeiEr2Q== X-Received: by 10.194.23.39 with SMTP id j7mr48241743wjf.4.1469997295089; Sun, 31 Jul 2016 13:34:55 -0700 (PDT) Received: from localhost.localdomain ([160.156.220.249]) by smtp.gmail.com with ESMTPSA id v203sm13608936wmv.2.2016.07.31.13.34.53 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 31 Jul 2016 13:34:54 -0700 (PDT) From: Salah Triki To: akpm@linux-foundation.org, viro@zeniv.linux.org.uk, luisbg@osg.samsung.com Cc: Salah Triki , mhocko@suse.com, vdavydov@virtuozzo.com, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 6/6] fs: befs: remove ret variable Date: Sun, 31 Jul 2016 21:34:31 +0100 Message-Id: X-Mailer: git-send-email 1.9.1 In-Reply-To: References: In-Reply-To: References: 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 ret is initialized to -EIO and is never modified, so remove ret and use -EIO directly. Signed-off-by: Salah Triki Acked-by: Luis de Bethencourt --- fs/befs/linuxvfs.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/fs/befs/linuxvfs.c b/fs/befs/linuxvfs.c index 2b68c81..c57f831 100644 --- a/fs/befs/linuxvfs.c +++ b/fs/befs/linuxvfs.c @@ -300,7 +300,6 @@ static struct inode *befs_iget(struct super_block *sb, unsigned long ino) struct befs_sb_info *befs_sb = BEFS_SB(sb); struct befs_inode_info *befs_ino; struct inode *inode; - long ret = -EIO; befs_debug(sb, "---> %s inode = %lu", __func__, ino); @@ -422,7 +421,7 @@ static struct inode *befs_iget(struct super_block *sb, unsigned long ino) unacquire_none: iget_failed(inode); befs_debug(sb, "<--- %s - Bad inode", __func__); - return ERR_PTR(ret); + return ERR_PTR(-EIO); } /* Initialize the inode cache. Called at fs setup.