summaryrefslogtreecommitdiffstats
path: root/sb600spi.c
diff options
context:
space:
mode:
authorStefan Reinauer <stepan@coresystems.de>2009-09-16 08:26:59 +0000
committerStefan Reinauer <stefan.reinauer@coreboot.org>2009-09-16 08:26:59 +0000
commitab044b20a2b44097ce65c3fd4f232ee7170303ba (patch)
tree4d4e3556312edc4be7fc90d073a2fbb79d86d687 /sb600spi.c
parent9e72aa51a7a9ac5f041bacab75fd4be1e2a3356c (diff)
downloadast2050-flashrom-ab044b20a2b44097ce65c3fd4f232ee7170303ba.zip
ast2050-flashrom-ab044b20a2b44097ce65c3fd4f232ee7170303ba.tar.gz
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>
Diffstat (limited to 'sb600spi.c')
-rw-r--r--sb600spi.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/sb600spi.c b/sb600spi.c
index 0738a86..5965b3b 100644
--- a/sb600spi.c
+++ b/sb600spi.c
@@ -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(".");
OpenPOWER on IntegriCloud