Patchwork [U-Boot,v3,2/5] at91: atmel_nand: remove unused variables.

login
register
mail settings
Submitter Wu, Josh
Date Aug. 23, 2012, 10:05 a.m.
Message ID <1345716338-11217-3-git-send-email-josh.wu@atmel.com>
Download mbox | patch
Permalink /patch/179588/
State Accepted
Delegated to: Andreas Bießmann
Headers show

Comments

Wu, Josh - Aug. 23, 2012, 10:05 a.m.
Signed-off-by: Josh Wu <josh.wu@atmel.com>
Acked-by: Scott Wood <scottwood@freescale.com>
---
 drivers/mtd/nand/atmel_nand.c |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
Andreas Bießmann - Sept. 1, 2012, 2:20 p.m.
Dear Josh Wu,

On 23.08.2012 12:05, Josh Wu wrote:
> Signed-off-by: Josh Wu <josh.wu@atmel.com>
> Acked-by: Scott Wood <scottwood@freescale.com>
> ---

applied to u-boot-atmel/master, thanks!

Best regards

Andreas Bießmann

Patch

diff --git a/drivers/mtd/nand/atmel_nand.c b/drivers/mtd/nand/atmel_nand.c
index 21dc4f5..05a6317 100644
--- a/drivers/mtd/nand/atmel_nand.c
+++ b/drivers/mtd/nand/atmel_nand.c
@@ -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 */