at91: atmel_nand: remove unused variables.
authorWu, Josh <Josh.wu@atmel.com>
Thu, 23 Aug 2012 00:05:35 +0000 (00:05 +0000)
committerAlbert ARIBAUD <albert.u.boot@aribaud.net>
Sat, 1 Sep 2012 15:06:14 +0000 (17:06 +0200)
Signed-off-by: Josh Wu <josh.wu@atmel.com>
Acked-by: Scott Wood <scottwood@freescale.com>
Signed-off-by: Andreas Bießmann <andreas.devel@googlemail.com>
drivers/mtd/nand/atmel_nand.c

index f8b38f7..cc609b1 100644 (file)
@@ -79,7 +79,6 @@ static struct nand_ecclayout atmel_oobinfo_small = {
 static int atmel_nand_calculate(struct mtd_info *mtd,
                const u_char *dat, unsigned char *ecc_code)
 {
-       struct nand_chip *nand_chip = mtd->priv;
        unsigned int ecc_value;
 
        /* get the first 2 ECC bytes */
@@ -167,7 +166,7 @@ static int atmel_nand_correct(struct mtd_info *mtd, u_char *dat,
                u_char *read_ecc, u_char *isnull)
 {
        struct nand_chip *nand_chip = mtd->priv;
-       unsigned int ecc_status, ecc_parity, ecc_mode;
+       unsigned int ecc_status;
        unsigned int ecc_word, ecc_bit;
 
        /* get the status from the Status Register */