diff options
author | stepan <stepan@2b7e53f0-3cfb-0310-b3e9-8179ed1497e1> | 2009-09-16 08:26:59 +0000 |
---|---|---|
committer | stepan <stepan@2b7e53f0-3cfb-0310-b3e9-8179ed1497e1> | 2009-09-16 08:26:59 +0000 |
commit | 2da5d1e124a9bf63ffec88fc6a740a67dbb38e71 (patch) | |
tree | 4d4e3556312edc4be7fc90d073a2fbb79d86d687 /sb600spi.c | |
parent | f5976b1b5f87bc5149be1c681adeae770cf95b00 (diff) | |
download | flashrom-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.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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("."); |