public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH] nand_spl/nand_boot.c: Fix build warning
@ 2011-12-07 21:58 Anatolij Gustschin
  2011-12-07 22:14 ` Scott Wood
  0 siblings, 1 reply; 2+ messages in thread
From: Anatolij Gustschin @ 2011-12-07 21:58 UTC (permalink / raw)
  To: u-boot

Fix:
nand_boot.c: In function 'nand_read_page':
nand_boot.c:150:6: warning: variable 'stat' set but not used
[-Wunused-but-set-variable]

Signed-off-by: Anatolij Gustschin <agust@denx.de>
---
 nand_spl/nand_boot.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/nand_spl/nand_boot.c b/nand_spl/nand_boot.c
index bee1029..2326962 100644
--- a/nand_spl/nand_boot.c
+++ b/nand_spl/nand_boot.c
@@ -147,7 +147,6 @@ static int nand_read_page(struct mtd_info *mtd, int block, int page, uchar *dst)
 	int eccbytes = CONFIG_SYS_NAND_ECCBYTES;
 	int eccsteps = CONFIG_SYS_NAND_ECCSTEPS;
 	uint8_t *p = dst;
-	int stat;
 
 	/*
 	 * No malloc available for now, just use some temporary locations
@@ -170,7 +169,7 @@ static int nand_read_page(struct mtd_info *mtd, int block, int page, uchar *dst)
 		this->ecc.hwctl(mtd, NAND_ECC_READ);
 		this->read_buf(mtd, p, eccsize);
 		this->ecc.calculate(mtd, p, &ecc_calc[i]);
-		stat = this->ecc.correct(mtd, p, &ecc_code[i], &ecc_calc[i]);
+		this->ecc.correct(mtd, p, &ecc_code[i], &ecc_calc[i]);
 	}
 
 	return 0;
-- 
1.7.5.4

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [U-Boot] [PATCH] nand_spl/nand_boot.c: Fix build warning
  2011-12-07 21:58 [U-Boot] [PATCH] nand_spl/nand_boot.c: Fix build warning Anatolij Gustschin
@ 2011-12-07 22:14 ` Scott Wood
  0 siblings, 0 replies; 2+ messages in thread
From: Scott Wood @ 2011-12-07 22:14 UTC (permalink / raw)
  To: u-boot

On 12/07/2011 03:58 PM, Anatolij Gustschin wrote:
> Fix:
> nand_boot.c: In function 'nand_read_page':
> nand_boot.c:150:6: warning: variable 'stat' set but not used
> [-Wunused-but-set-variable]
> 
> Signed-off-by: Anatolij Gustschin <agust@denx.de>
> ---
>  nand_spl/nand_boot.c |    3 +--
>  1 files changed, 1 insertions(+), 2 deletions(-)

Applied to u-boot-nand-flash

-Scott

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-12-07 22:14 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-12-07 21:58 [U-Boot] [PATCH] nand_spl/nand_boot.c: Fix build warning Anatolij Gustschin
2011-12-07 22:14 ` Scott Wood

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox