mtd: onenand: kill unused variable

Linux-MTD Mailing List linux-mtd at lists.infradead.org
Mon Jan 9 13:59:14 EST 2012


Gitweb:     http://git.infradead.org/?p=mtd-2.6.git;a=commit;h=ee16f2af2d464ee4c040e571c225dcbb1ce4a7d3
Commit:     ee16f2af2d464ee4c040e571c225dcbb1ce4a7d3
Parent:     d5de20a9a1c5ad68c07e017d11f6dbb5e289750c
Author:     Artem Bityutskiy <artem.bityutskiy at linux.intel.com>
AuthorDate: Thu Dec 29 18:04:31 2011 +0200
Committer:  David Woodhouse <David.Woodhouse at intel.com>
CommitDate: Mon Jan 9 18:25:58 2012 +0000

    mtd: onenand: kill unused variable
    
    Fix this gcc warning:
    
    drivers/mtd/onenand/onenand_base.c: In function ‘onenand_block_markbad’:
    drivers/mtd/onenand/onenand_base.c:2636:23: warning: unused variable ‘this’ [-Wunused-variable]
    
    Signed-off-by: Artem Bityutskiy <artem.bityutskiy at linux.intel.com>
    Signed-off-by: David Woodhouse <David.Woodhouse at intel.com>
---
 drivers/mtd/onenand/onenand_base.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)

diff --git a/drivers/mtd/onenand/onenand_base.c b/drivers/mtd/onenand/onenand_base.c
index dd278a2..a061bc1 100644
--- a/drivers/mtd/onenand/onenand_base.c
+++ b/drivers/mtd/onenand/onenand_base.c
@@ -2633,7 +2633,6 @@ static int onenand_default_block_markbad(struct mtd_info *mtd, loff_t ofs)
  */
 static int onenand_block_markbad(struct mtd_info *mtd, loff_t ofs)
 {
-	struct onenand_chip *this = mtd->priv;
 	int ret;
 
 	ret = onenand_block_isbad(mtd, ofs);



More information about the linux-mtd-cvs mailing list