Patchwork [1/2] mtd: onenand: kill unused variable

login
register
mail settings
Submitter Artem Bityutskiy
Date Dec. 29, 2011, 4:11 p.m.
Message ID <1325175108-7945-1-git-send-email-dedekind1@gmail.com>
Download mbox | patch
Permalink /patch/133568/
State Accepted
Commit ee16f2af2d464ee4c040e571c225dcbb1ce4a7d3
Headers show

Comments

Artem Bityutskiy - Dec. 29, 2011, 4:11 p.m.
From: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>

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@linux.intel.com>
---
 drivers/mtd/onenand/onenand_base.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)

Patch

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);