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>
diff --git a/sb600spi.c b/sb600spi.c
index 0738a86..5965b3b 100644
--- a/sb600spi.c
+++ b/sb600spi.c
@@ -64,6 +64,11 @@
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(".");