[PATCH] atmel_nand: silence compiler warning by removing unused variable
Hans-Christian Egtvedt
hans-christian.egtvedt at atmel.com
Thu Oct 29 08:04:53 EDT 2009
This patch removes the eccpos variable from the atmel_nand_calculate function,
thus silencing a compiler warning about unused variable.
Signed-off-by: Hans-Christian Egtvedt <hans-christian.egtvedt at atmel.com>
---
drivers/mtd/nand/atmel_nand.c | 1 -
1 files changed, 0 insertions(+), 1 deletions(-)
diff --git a/drivers/mtd/nand/atmel_nand.c b/drivers/mtd/nand/atmel_nand.c
index f8e9975..4f62d20 100644
--- a/drivers/mtd/nand/atmel_nand.c
+++ b/drivers/mtd/nand/atmel_nand.c
@@ -192,7 +192,6 @@ static int atmel_nand_calculate(struct mtd_info *mtd,
{
struct nand_chip *nand_chip = mtd->priv;
struct atmel_nand_host *host = nand_chip->priv;
- uint32_t *eccpos = nand_chip->ecc.layout->eccpos;
unsigned int ecc_value;
/* get the first 2 ECC bytes */
--
1.6.0.4
More information about the linux-mtd
mailing list