summaryrefslogtreecommitdiffstats
path: root/spi25.c
diff options
context:
space:
mode:
authorElyes HAOUAS <ehaouas@noos.fr>2019-07-18 14:30:47 +0200
committerNico Huber <nico.h@gmx.de>2019-07-19 16:17:58 +0000
commit5800f5841de2fd74bfc6590978bd034a6c9e6102 (patch)
tree929fbfc5ca19a359b7bf1743ac138e1cac63e34d /spi25.c
parent3384fb6ddae9583c2e201fc9c8a819e9df530369 (diff)
downloadflashrom-5800f5841de2fd74bfc6590978bd034a6c9e6102.tar.gz
flashrom-5800f5841de2fd74bfc6590978bd034a6c9e6102.tar.bz2
flashrom-5800f5841de2fd74bfc6590978bd034a6c9e6102.zip
spi25: Remove dead increment
Value stored in 'pos' is never read. Found-by: scan-build 7.0.1-8 Change-Id: I9a70593f182d7558e71e831fc2b834ac58a25b2a Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr> Reviewed-on: https://review.coreboot.org/c/flashrom/+/34404 Tested-by: Nico Huber <nico.h@gmx.de> Reviewed-by: Nico Huber <nico.h@gmx.de>
Diffstat (limited to 'spi25.c')
-rw-r--r--spi25.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/spi25.c b/spi25.c
index 36f265a7b..2a1d492ae 100644
--- a/spi25.c
+++ b/spi25.c
@@ -782,7 +782,6 @@ int default_spi_write_aai(struct flashctx *flash, const uint8_t *buf, unsigned i
if (pos < start + len) {
if (spi_chip_write_1(flash, buf + pos - start, pos, pos % 2))
return SPI_GENERIC_ERROR;
- pos += pos % 2;
}
return 0;