2016-04-18 16:05:20

by Maarten ter Huurne

[permalink] [raw]
Subject: [PATCH] mtd: nand: jz4740: Remove unused local variable

Signed-off-by: Maarten ter Huurne <[email protected]>
---
drivers/mtd/nand/jz4740_nand.c | 1 -
1 file changed, 1 deletion(-)

diff --git a/drivers/mtd/nand/jz4740_nand.c b/drivers/mtd/nand/jz4740_nand.c
index 673ceb2..2f39ee1 100644
--- a/drivers/mtd/nand/jz4740_nand.c
+++ b/drivers/mtd/nand/jz4740_nand.c
@@ -221,7 +221,6 @@ static int jz_nand_correct_ecc_rs(struct mtd_info *mtd, uint8_t *dat,
struct jz_nand *nand = mtd_to_jz_nand(mtd);
int i, error_count, index;
uint32_t reg, status, error;
- uint32_t t;
unsigned int timeout = 1000;

for (i = 0; i < 9; ++i)
--
2.6.6


2016-04-19 11:04:15

by Harvey Hunt

[permalink] [raw]
Subject: Re: [PATCH] mtd: nand: jz4740: Remove unused local variable

Hi Maarten,

On 18/04/16 17:04, Maarten ter Huurne wrote:
> Signed-off-by: Maarten ter Huurne <[email protected]>
> ---
> drivers/mtd/nand/jz4740_nand.c | 1 -
> 1 file changed, 1 deletion(-)
>
> diff --git a/drivers/mtd/nand/jz4740_nand.c b/drivers/mtd/nand/jz4740_nand.c
> index 673ceb2..2f39ee1 100644
> --- a/drivers/mtd/nand/jz4740_nand.c
> +++ b/drivers/mtd/nand/jz4740_nand.c
> @@ -221,7 +221,6 @@ static int jz_nand_correct_ecc_rs(struct mtd_info *mtd, uint8_t *dat,
> struct jz_nand *nand = mtd_to_jz_nand(mtd);
> int i, error_count, index;
> uint32_t reg, status, error;
> - uint32_t t;
> unsigned int timeout = 1000;
>
> for (i = 0; i < 9; ++i)
>

Acked-by: Harvey Hunt <[email protected]>

Thanks,

Harvey

2016-04-20 15:44:44

by Boris Brezillon

[permalink] [raw]
Subject: Re: [PATCH] mtd: nand: jz4740: Remove unused local variable

On Mon, 18 Apr 2016 18:04:56 +0200
Maarten ter Huurne <[email protected]> wrote:

> Signed-off-by: Maarten ter Huurne <[email protected]>

Applied.

Thanks,

Boris

> ---
> drivers/mtd/nand/jz4740_nand.c | 1 -
> 1 file changed, 1 deletion(-)
>
> diff --git a/drivers/mtd/nand/jz4740_nand.c b/drivers/mtd/nand/jz4740_nand.c
> index 673ceb2..2f39ee1 100644
> --- a/drivers/mtd/nand/jz4740_nand.c
> +++ b/drivers/mtd/nand/jz4740_nand.c
> @@ -221,7 +221,6 @@ static int jz_nand_correct_ecc_rs(struct mtd_info *mtd, uint8_t *dat,
> struct jz_nand *nand = mtd_to_jz_nand(mtd);
> int i, error_count, index;
> uint32_t reg, status, error;
> - uint32_t t;
> unsigned int timeout = 1000;
>
> for (i = 0; i < 9; ++i)



--
Boris Brezillon, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com