Patchwork atmel_nand: silence compiler warning by removing unused variable

login
register
mail settings
Submitter Hans-Christian Egtvedt
Date Oct. 29, 2009, 12:04 p.m.
Message ID <1256817893-16413-1-git-send-email-hans-christian.egtvedt@atmel.com>
Download mbox | patch
Permalink /patch/37176/
State New
Headers show

Comments

Hans-Christian Egtvedt - Oct. 29, 2009, 12:04 p.m.
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@atmel.com>
---
 drivers/mtd/nand/atmel_nand.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)
Claudio Scordino - Oct. 29, 2009, 12:54 p.m.
Hans-Christian Egtvedt ha scritto:
> This patch removes the eccpos variable from the atmel_nand_calculate function,
> thus silencing a compiler warning about unused variable.
>   
Hi,

   I already sent this patch to this list on October 7th.

See:

http://lists.infradead.org/pipermail/linux-mtd/2009-October/027498.html

Best regards,

            Claudio
Hans-Christian Egtvedt - Oct. 29, 2009, 1:03 p.m.
On Thu, 29 Oct 2009 13:54:37 +0100
Claudio Scordino <claudio@evidence.eu.com> wrote:

> Hans-Christian Egtvedt ha scritto:
> > This patch removes the eccpos variable from the atmel_nand_calculate function,
> > thus silencing a compiler warning about unused variable.
> >   
> Hi,
> 
>    I already sent this patch to this list on October 7th.
> 

Okay, great, sorry for the noise then. I was working on Torvalds master
branch and spotted the trivial warning.

Patch

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 */