From patchwork Fri Jun 3 07:34:33 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Axel Lin X-Patchwork-Id: 98526 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 24206B6F9E for ; Fri, 3 Jun 2011 17:35:10 +1000 (EST) Received: from canuck.infradead.org ([2001:4978:20e::1]) by merlin.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1QSOu5-0005Qz-He; Fri, 03 Jun 2011 07:34:45 +0000 Received: from localhost ([127.0.0.1] helo=canuck.infradead.org) by canuck.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1QSOu5-00007p-6z; Fri, 03 Jun 2011 07:34:45 +0000 Received: from mail-px0-f175.google.com ([209.85.212.175]) by canuck.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1QSOu2-00007V-QT for linux-mtd@lists.infradead.org; Fri, 03 Jun 2011 07:34:43 +0000 Received: by pxi17 with SMTP id 17so918423pxi.20 for ; Fri, 03 Jun 2011 00:34:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:subject:from:to:cc:content-type:date:message-id :mime-version:x-mailer:content-transfer-encoding; bh=USQZmIads0xDxJ4GWac+fIjVXk4wooZiqJZPUTz/bJ4=; b=Aky0xARNMKVuPmpi6ZWmKyPcGT/P4gY4CCKeae+W2YRdJKcHwLhJUe9awhgeIb1FS7 EuFwjRkBhbBWbezfQygbeFxTTJNM8JHCQyuXgX3KzKLvR42DULd5p2YAUPVPNzarCdlL TqliIU0eggmJ0Ffptj0BvLz22u9B6HhH9qPXY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=subject:from:to:cc:content-type:date:message-id:mime-version :x-mailer:content-transfer-encoding; b=NUEk2Dt5vyQixuevCFFYOpglcOf/ZA1Cd6RmtqC3WabbjDPjDSHEjfRQTkZwC7iZ9S UMjD0lhAnE70+t7U0a+QFUE80udckpaevm0aajWKidxMCqUVSYqVTtYgddYnxVfKVu26 RDLKPMX/kmdpUnUcHKNhJcTB7xOoH9XpblXbc= Received: by 10.68.3.104 with SMTP id b8mr658817pbb.324.1307086479409; Fri, 03 Jun 2011 00:34:39 -0700 (PDT) Received: from [59.112.85.1] (59-112-85-1.dynamic.hinet.net [59.112.85.1]) by mx.google.com with ESMTPS id c5sm1258787pbj.25.2011.06.03.00.34.37 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 03 Jun 2011 00:34:38 -0700 (PDT) Subject: [PATCH] mtd: pxa3xx_nand: remove unused variable 'mtd' From: Axel Lin To: linux-kernel@vger.kernel.org Date: Fri, 03 Jun 2011 15:34:33 +0800 Message-ID: <1307086473.7474.1.camel@phoenix> Mime-Version: 1.0 X-Mailer: Evolution 2.32.2 X-CRM114-Version: 20090807-BlameThorstenAndJenny ( TRE 0.7.6 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20110603_033443_095047_2DBAF051 X-CRM114-Status: GOOD ( 11.17 ) X-Spam-Score: -0.8 (/) X-Spam-Report: SpamAssassin version 3.3.1 on canuck.infradead.org summary: Content analysis details: (-0.8 points) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 FREEMAIL_FROM Sender email is freemail (axel.lin[at]gmail.com) -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [209.85.212.175 listed in list.dnswl.org] -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.0 RFC_ABUSE_POST Both abuse and postmaster missing on sender domain 0.0 T_TO_NO_BRKTS_FREEMAIL T_TO_NO_BRKTS_FREEMAIL Cc: Artem Bityutskiy , Eric Miao , Haojian Zhuang , linux-mtd@lists.infradead.org X-BeenThere: linux-mtd@lists.infradead.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: linux-mtd-bounces@lists.infradead.org Errors-To: linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org Remove unused variable 'mtd' to eliminate below warning. CC drivers/mtd/nand/pxa3xx_nand.o drivers/mtd/nand/pxa3xx_nand.c: In function 'pxa3xx_nand_suspend': drivers/mtd/nand/pxa3xx_nand.c:1167: warning: unused variable 'mtd' drivers/mtd/nand/pxa3xx_nand.c: In function 'pxa3xx_nand_resume': drivers/mtd/nand/pxa3xx_nand.c:1180: warning: unused variable 'mtd' Signed-off-by: Axel Lin --- drivers/mtd/nand/pxa3xx_nand.c | 2 -- 1 files changed, 0 insertions(+), 2 deletions(-) diff --git a/drivers/mtd/nand/pxa3xx_nand.c b/drivers/mtd/nand/pxa3xx_nand.c index 1fb3b3a..5cae8ae 100644 --- a/drivers/mtd/nand/pxa3xx_nand.c +++ b/drivers/mtd/nand/pxa3xx_nand.c @@ -1164,7 +1164,6 @@ static int pxa3xx_nand_probe(struct platform_device *pdev) static int pxa3xx_nand_suspend(struct platform_device *pdev, pm_message_t state) { struct pxa3xx_nand_info *info = platform_get_drvdata(pdev); - struct mtd_info *mtd = info->mtd; if (info->state) { dev_err(&pdev->dev, "driver busy, state = %d\n", info->state); @@ -1177,7 +1176,6 @@ static int pxa3xx_nand_suspend(struct platform_device *pdev, pm_message_t state) static int pxa3xx_nand_resume(struct platform_device *pdev) { struct pxa3xx_nand_info *info = platform_get_drvdata(pdev); - struct mtd_info *mtd = info->mtd; nand_writel(info, NDTR0CS0, info->ndtr0cs0); nand_writel(info, NDTR1CS0, info->ndtr1cs0);