1
0
mirror of https://review.coreboot.org/flashrom.git synced 2025-07-01 14:11:15 +02:00

Fix all remaining issues reported by LLVM/clang's scan-build

Corresponding to flashrom svn r723.

Signed-off-by: Stefan Reinauer <stepan@coresystems.de>
Acked-by: Ronald G. Minnich <rminnich@gmail.com>
This commit is contained in:
Stefan Reinauer
2009-09-16 08:26:59 +00:00
committed by Stefan Reinauer
parent 9e72aa51a7
commit ab044b20a2
3 changed files with 28 additions and 27 deletions

View File

@ -64,6 +64,11 @@ int sb600_spi_write_1(struct flashchip *flash, uint8_t *buf)
printf("Programming flash");
for (i = 0; i < total_size; i++, buf++) {
result = spi_byte_program(i, *buf);
if (result) {
// spi_byte_program reported the error for us already
printf_debug("... continuing anyway.\n");
}
/* wait program complete. */
if (i % 0x8000 == 0)
printf(".");