From patchwork Fri Jun 9 10:47:43 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 103469 Delivered-To: patch@linaro.org Received: by 10.140.91.77 with SMTP id y71csp145394qgd; Fri, 9 Jun 2017 03:49:14 -0700 (PDT) X-Received: by 10.98.76.76 with SMTP id z73mr40322204pfa.99.1497005354076; Fri, 09 Jun 2017 03:49:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1497005354; cv=none; d=google.com; s=arc-20160816; b=L7armFoqh5W54F0mgS6ZwWV1efaz5Uk73pfsod29mm9Nu+9nL0zluOb4cvCoAxUwBq QLDqB6Q1t1VsV5U1oNcnzNNRcMBGKdkQPjaDEUdz0kQ2YV0FgcuH8PjmqLHaYa8Ds+0w HwqIntdmJ3DPLyUk/xRZ4zZdvWfUdEQ3w5MgOC7h0+967SuqxKD489SagW3op1WuW7zk Ifbi7DHE55eCsJoYKzwIPLSGRIqzJTKIwgxNMWNS2jjZDMPGZ6p4U1e1pTpTISVyUgKM FnbArx3f8NL5SJl5IJBDVPsqts062GbKFmHmodpdCgHgNP+blh7Ru4Apeqcp3aFcQMrG zBsg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:sender:content-transfer-encoding:mime-version:cc :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:message-id:date:subject:to:from:dkim-signature :arc-authentication-results; bh=nLjwumysa2WowfAWfmtztpDCJ8C0tQtGc67zLkGsH1g=; b=GUdJOSaRJ9RpEqX7PiotNdLSb+nk9N6I/Op5ruhTu70WrMa3P72MU0d2mpytvpXPvA PSYzsI3uMdJxBlsqf/gGfzxxxRpP/+ZncNw8+T3f44IGtUc9O5xn3GqefsR6BmWI1pU+ FZBhlTR4WB+K3ChgM57KaxI+0T+LLXPL9aa8L+XOgiVavM0mOiSzfor72KdYM3U9Ikfm H4DsmyGsnjycTH4kcvXgmd6J+Nu/m/YS2fHRV6A+7Ec4vuE/oJeMVOxAsHeKLz4LSiz+ X9RlYEHnZoOO/ymUtIECoF9JdQH3g8DVavrhFcY50AtOHYH9j1w89FleXBNQ2l5Ud0aY R2Gg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lists.infradead.org; spf=pass (google.com: best guess record for domain of linux-mtd-bounces+patch=linaro.org@lists.infradead.org designates 65.50.211.133 as permitted sender) smtp.mailfrom=linux-mtd-bounces+patch=linaro.org@lists.infradead.org Return-Path: Received: from bombadil.infradead.org (bombadil.infradead.org. [65.50.211.133]) by mx.google.com with ESMTPS id 31si653345plc.11.2017.06.09.03.49.13 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 09 Jun 2017 03:49:14 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-mtd-bounces+patch=linaro.org@lists.infradead.org designates 65.50.211.133 as permitted sender) client-ip=65.50.211.133; Authentication-Results: mx.google.com; dkim=pass header.i=@lists.infradead.org; spf=pass (google.com: best guess record for domain of linux-mtd-bounces+patch=linaro.org@lists.infradead.org designates 65.50.211.133 as permitted sender) smtp.mailfrom=linux-mtd-bounces+patch=linaro.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: References:List-Owner; bh=nLjwumysa2WowfAWfmtztpDCJ8C0tQtGc67zLkGsH1g=; b=FCa WGZiquvqUV1sgT5jq4Xjt4zr0HFpidf+eeZtVWri41ikmbVjqvE0v0GSXC1uDIbCfHZLzrMUSmJtm PLG5QYUyUV3ipQW4FurY2A04m6weMjhve6DR4/wKWuAVUibroFp7HQWXMFpBNOs/FJhLt8RJv3A5f jNDlVSsqlwqEjUfk5t4PCBLhBuCesCmTGTEWFTroihNXeVpg5ZacxfKn83pzL838snb8zF6zdSs4W kFmpMcLXgWBO6PUNQfXnPaeEyEcqiIA1kYRgZ0pGbMtYp8y16PHDMQ4Z8hmkunhxSy9PuKcTVXqq9 We0bXAdaycY9L+43nynhf7gkte5CYRQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1dJHTP-0006gU-Uc; Fri, 09 Jun 2017 10:48:59 +0000 Received: from mout.kundenserver.de ([212.227.17.13]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dJHTL-0006fk-QT for linux-mtd@lists.infradead.org; Fri, 09 Jun 2017 10:48:57 +0000 Received: from wuerfel.lan ([78.42.17.5]) by mrelayeu.kundenserver.de (mreue101 [212.227.15.145]) with ESMTPA (Nemesis) id 0M9Xn5-1d93uj2spD-00Cx1M; Fri, 09 Jun 2017 12:48:30 +0200 From: Arnd Bergmann To: Boris Brezillon Subject: [PATCH] mtd: nand: fsl_ifc: remove unused variable Date: Fri, 9 Jun 2017 12:47:43 +0200 Message-Id: <20170609104829.3488073-1-arnd@arndb.de> X-Mailer: git-send-email 2.9.0 X-Provags-ID: V03:K0:C1x9uvN9nAzF4STB4ekBV+m4m2KspKQTpC4Su+n+h6uI3kS41SB bCRcoFP4xPAz9dpj0SWQ+SfBpArwmKwirUG1iT6jAZmYtX+y7MNZNCbezhlJBbJnCNzM69M whYG1q3Aqia8+QtBRVB1A1zVIkjX/lxoC/HObxXseTPT4REL1M8hmyfc035DocIYbYJ2ps7 qfkSF4St6HMODetNr8Mtw== X-UI-Out-Filterresults: notjunk:1; V01:K0:O6+zp5UQk9A=:e1BJ9Jm/DZQyRVows3SfXN CycMXMCXW3XGdCGBStmUbf3Gu8Cw05cvTadvo0+W3aacLThsJwpvqtacgclxLS1iqxgWs8j+F G4Vf2Gtc0mVlzQIzW8TqYDeKSV7b8sf5tNs+skSBX7EtEOFfaS9Da3+sAOQbdV5Wk1Df7l1kw hGJBVYDyzMpmPXTTIG3PTukjOy0C9azoU4fxLa/O/vF/WRHrK4Ll8NlSDJ6XQSioFHxrytuGq dQf/BjtabOpdjt8XYl5B7Y+Uj3wJzGr2GzUaEmyh4G2V9F23Rk8D+/Wmk01DEz9IubkxHRnWN f/EEv/xcAq+y1RTV4TQabaBkLRitZowDdtxFF13T6BqE9fyMfXobJZMDyCCCH0+VtceJJ3sY5 2P+47XbgDWjvLKchLUvqYmm84e4Smtk5kUkSqSiTjJHzep7v6hFFctL2hW4YB71nhTB0bByTL pp/oSiyoJr44PEAOlFwt1qMxcIykcIKUu7vG1wdaDVrcH/n3a6gfJXsayB0fAi6vAEj3Xtm/4 ZiF7v045Ea23rL4OVIhH7MHFtFj07Nqr7kaI0Wr+tjcancXVZPzbLByqGGYm/+3ZCMMOzX4Kf yNNSZXT/FzUfu3Tk4Q1CDIivcClSR6JiC9ZrUsBAoE+/vRsCcftvsZoZDnF+LO/ufrlXnFL/G v8LNFoVtIJduxCdjlJvjcwtmB1SCgqy6w//RHKYHh8oLd5lTdRvlUepG1JRMbP0sTX18= X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170609_034856_186698_988302D8 X-CRM114-Status: UNSURE ( 9.96 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -2.9 (--) X-Spam-Report: SpamAssassin version 3.4.1 on bombadil.infradead.org summary: Content analysis details: (-2.9 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no trust [212.227.17.13 listed in list.dnswl.org] -1.0 RCVD_IN_MSPIKE_H2 RBL: Average reputation (+2) [212.227.17.13 listed in wl.mailspike.net] -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-BeenThere: linux-mtd@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Arnd Bergmann , Richard Weinberger , linux-kernel@vger.kernel.org, Marek Vasut , linux-mtd@lists.infradead.org, Pavel Machek , Cyrille Pitchen , Brian Norris , David Woodhouse MIME-Version: 1.0 Sender: "linux-mtd" Errors-To: linux-mtd-bounces+patch=linaro.org@lists.infradead.org This one was accidentally introduced without any references, and it causes a harmless warning: drivers/mtd/nand/fsl_ifc_nand.c: In function 'fsl_ifc_read_page': drivers/mtd/nand/fsl_ifc_nand.c:696:7: error: unused variable 'res' [-Werror=unused-variable] Fixes: 79f40cc12fd3 ("mtd: nand: fsl_ifc: fix handing of bit flips in erased pages") Signed-off-by: Arnd Bergmann --- drivers/mtd/nand/fsl_ifc_nand.c | 2 -- 1 file changed, 2 deletions(-) -- 2.9.0 ______________________________________________________ Linux MTD discussion mailing list http://lists.infradead.org/mailman/listinfo/linux-mtd/ diff --git a/drivers/mtd/nand/fsl_ifc_nand.c b/drivers/mtd/nand/fsl_ifc_nand.c index 14ef2f4524ac..d1c4538f870f 100644 --- a/drivers/mtd/nand/fsl_ifc_nand.c +++ b/drivers/mtd/nand/fsl_ifc_nand.c @@ -693,8 +693,6 @@ static int fsl_ifc_read_page(struct mtd_info *mtd, struct nand_chip *chip, fsl_ifc_read_buf(mtd, chip->oob_poi, mtd->oobsize); if (ctrl->nand_stat & IFC_NAND_EVTER_STAT_ECCER) { - int res; - if (!oob_required) fsl_ifc_read_buf(mtd, chip->oob_poi, mtd->oobsize);