summaryrefslogtreecommitdiff
path: root/util/flashrom
diff options
context:
space:
mode:
authorPeter Stuge <peter@stuge.se>2009-01-26 15:19:43 +0000
committerPeter Stuge <peter@stuge.se>2009-01-26 15:19:43 +0000
commit726c16d9839cef505ed062640e2769cd7924f201 (patch)
tree50329cd3d7b19716ad766a8678c210587829b590 /util/flashrom
parentc39cb144e997a35f294b2b38377d14aab7825f18 (diff)
flashrom: Fix one dead increment and one dead assignment as found by clang.
Thanks Patrick! Signed-off-by: Peter Stuge <peter@stuge.se> Acked-by: Peter Stuge <peter@stuge.se> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@3918 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'util/flashrom')
-rw-r--r--util/flashrom/ichspi.c1
-rw-r--r--util/flashrom/m29f002.c2
2 files changed, 1 insertions, 2 deletions
diff --git a/util/flashrom/ichspi.c b/util/flashrom/ichspi.c
index bad2e2781f..5de654bf71 100644
--- a/util/flashrom/ichspi.c
+++ b/util/flashrom/ichspi.c
@@ -289,7 +289,6 @@ int program_opcodes(OPCODES * op)
uint32_t opmenu[2];
/* Program Prefix Opcodes */
- preop = 0;
/* 0:7 Prefix Opcode 1 */
preop = (op->preop[0]);
/* 8:16 Prefix Opcode 2 */
diff --git a/util/flashrom/m29f002.c b/util/flashrom/m29f002.c
index a8365873ea..8afef796ee 100644
--- a/util/flashrom/m29f002.c
+++ b/util/flashrom/m29f002.c
@@ -77,7 +77,7 @@ int write_m29f002t(struct flashchip *flash, uint8_t *buf) {
do_block(bios, buf, i++, 0x30000, 32*1024);
do_block(bios, buf, i++, 0x38000, 8*1024);
do_block(bios, buf, i++, 0x3a000, 8*1024);
- do_block(bios, buf, i++, 0x3c000, 16*1024);
+ do_block(bios, buf, i, 0x3c000, 16*1024);
printf("\n");
return 0;