mtd: pxa3xx_nand: remove unused variable 'mtd'

Linux-MTD Mailing List linux-mtd at lists.infradead.org
Mon Nov 7 11:59:06 EST 2011


Gitweb:     http://git.infradead.org/?p=mtd-2.6.git;a=commit;h=1676bc18c6648c378029dad365756e12be7da025
Commit:     1676bc18c6648c378029dad365756e12be7da025
Parent:     7578ca927b1a2a0445c9a3166d05462b9ffd4c06
Author:     Axel Lin <axel.lin at gmail.com>
AuthorDate: Fri Jun 3 15:34:33 2011 +0800
Committer:  Artem Bityutskiy <artem.bityutskiy at intel.com>
CommitDate: Sun Sep 11 15:01:59 2011 +0300

    mtd: pxa3xx_nand: remove unused variable 'mtd'
    
    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 <axel.lin at gmail.com>
    Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy at nokia.com>
---
 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 f7040ea..e11f926 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);



More information about the linux-mtd-cvs mailing list