[coreboot] r3918 - trunk/util/flashrom
svn at coreboot.org
svn at coreboot.org
Mon Jan 26 16:19:43 CET 2009
Author: stuge
Date: 2009-01-26 16:19:43 +0100 (Mon, 26 Jan 2009)
New Revision: 3918
Modified:
trunk/util/flashrom/ichspi.c
trunk/util/flashrom/m29f002.c
Log:
flashrom: Fix one dead increment and one dead assignment as found by clang.
Thanks Patrick!
Signed-off-by: Peter Stuge <peter at stuge.se>
Acked-by: Peter Stuge <peter at stuge.se>
Modified: trunk/util/flashrom/ichspi.c
===================================================================
--- trunk/util/flashrom/ichspi.c 2009-01-26 06:42:02 UTC (rev 3917)
+++ trunk/util/flashrom/ichspi.c 2009-01-26 15:19:43 UTC (rev 3918)
@@ -289,7 +289,6 @@
uint32_t opmenu[2];
/* Program Prefix Opcodes */
- preop = 0;
/* 0:7 Prefix Opcode 1 */
preop = (op->preop[0]);
/* 8:16 Prefix Opcode 2 */
Modified: trunk/util/flashrom/m29f002.c
===================================================================
--- trunk/util/flashrom/m29f002.c 2009-01-26 06:42:02 UTC (rev 3917)
+++ trunk/util/flashrom/m29f002.c 2009-01-26 15:19:43 UTC (rev 3918)
@@ -77,7 +77,7 @@
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;
More information about the coreboot
mailing list