From ab044b20a2b44097ce65c3fd4f232ee7170303ba Mon Sep 17 00:00:00 2001 From: Stefan Reinauer Date: Wed, 16 Sep 2009 08:26:59 +0000 Subject: Fix all remaining issues reported by LLVM/clang's scan-build Corresponding to flashrom svn r723. Signed-off-by: Stefan Reinauer Acked-by: Ronald G. Minnich --- sb600spi.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'sb600spi.c') 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("."); -- cgit v1.1