summaryrefslogtreecommitdiffstats
path: root/drivers/mtd
diff options
context:
space:
mode:
authorArtem Bityutskiy <artem.bityutskiy@linux.intel.com>2011-12-29 18:04:31 +0200
committerDavid Woodhouse <David.Woodhouse@intel.com>2012-01-09 18:25:58 +0000
commitee16f2af2d464ee4c040e571c225dcbb1ce4a7d3 (patch)
tree3066c6c03163e55db594a7c72045d5f7b319f05f /drivers/mtd
parentd5de20a9a1c5ad68c07e017d11f6dbb5e289750c (diff)
downloadop-kernel-dev-ee16f2af2d464ee4c040e571c225dcbb1ce4a7d3.zip
op-kernel-dev-ee16f2af2d464ee4c040e571c225dcbb1ce4a7d3.tar.gz
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@linux.intel.com> Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Diffstat (limited to 'drivers/mtd')
-rw-r--r--drivers/mtd/onenand/onenand_base.c1
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);
OpenPOWER on IntegriCloud