summaryrefslogtreecommitdiff
path: root/sb600spi.c
diff options
context:
space:
mode:
authorstepan <stepan@2b7e53f0-3cfb-0310-b3e9-8179ed1497e1>2009-09-16 08:26:59 +0000
committerstepan <stepan@2b7e53f0-3cfb-0310-b3e9-8179ed1497e1>2009-09-16 08:26:59 +0000
commit2da5d1e124a9bf63ffec88fc6a740a67dbb38e71 (patch)
tree4d4e3556312edc4be7fc90d073a2fbb79d86d687 /sb600spi.c
parentf5976b1b5f87bc5149be1c681adeae770cf95b00 (diff)
downloadflashrom-2da5d1e124a9bf63ffec88fc6a740a67dbb38e71.tar.gz
This patch cleans up flashrom so that it passes LLVM/clang's scan-build
without warnings. Signed-off-by: Stefan Reinauer <stepan@coresystems.de> Acked-by: Ronald G. Minnich <rminnich@gmail.com> git-svn-id: https://code.coreboot.org/svn/flashrom/trunk@723 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
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(".");