diff options
author | Wolfgang Denk <wd@denx.de> | 2011-12-08 20:54:13 +0100 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2011-12-08 20:54:13 +0100 |
commit | 4b6f394fc41d7aee40467c30807b5ea03e2f6649 (patch) | |
tree | ebf219811d5aecaf9db92ebe5b09c5f246d67bfc /nand_spl/nand_boot.c | |
parent | 3073abdd6af53b9da88cd9a47fc9f7ce65fd20ea (diff) | |
parent | 40a0682d4ae69bdd8b6aa10b6dcb57a489ae875c (diff) | |
download | u-boot-imx-4b6f394fc41d7aee40467c30807b5ea03e2f6649.zip u-boot-imx-4b6f394fc41d7aee40467c30807b5ea03e2f6649.tar.gz u-boot-imx-4b6f394fc41d7aee40467c30807b5ea03e2f6649.tar.bz2 |
Merge branch 'master' of git://git.denx.de/u-boot-nand-flash
* 'master' of git://git.denx.de/u-boot-nand-flash:
nand_spl/nand_boot.c: Fix build warning
drivers/mtd/nand/nand_spl_load.c: Fix GCC 4.6 warning
drivers/mtd/nand/nand_spl_simple.c: Fix GCC 4.6 warnings
Diffstat (limited to 'nand_spl/nand_boot.c')
-rw-r--r-- | 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; |