Commit 40a0682d4ae69bdd8b6aa10b6dcb57a489ae875c

Authored by Anatolij Gustschin
Committed by Scott Wood
1 parent b7fde587bf

nand_spl/nand_boot.c: Fix build warning

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>
Signed-off-by: Scott Wood <scottwood@freescale.com>

Showing 1 changed file with 1 additions and 2 deletions Side-by-side Diff

nand_spl/nand_boot.c
... ... @@ -147,7 +147,6 @@
147 147 int eccbytes = CONFIG_SYS_NAND_ECCBYTES;
148 148 int eccsteps = CONFIG_SYS_NAND_ECCSTEPS;
149 149 uint8_t *p = dst;
150   - int stat;
151 150  
152 151 /*
153 152 * No malloc available for now, just use some temporary locations
... ... @@ -170,7 +169,7 @@
170 169 this->ecc.hwctl(mtd, NAND_ECC_READ);
171 170 this->read_buf(mtd, p, eccsize);
172 171 this->ecc.calculate(mtd, p, &ecc_calc[i]);
173   - stat = this->ecc.correct(mtd, p, &ecc_code[i], &ecc_calc[i]);
  172 + this->ecc.correct(mtd, p, &ecc_code[i], &ecc_calc[i]);
174 173 }
175 174  
176 175 return 0;