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
This commit is contained in:
Peter Stuge 2009-01-26 15:19:43 +00:00
parent c39cb144e9
commit 726c16d983
2 changed files with 1 additions and 2 deletions

View File

@ -289,7 +289,6 @@ int program_opcodes(OPCODES * op)
uint32_t opmenu[2]; uint32_t opmenu[2];
/* Program Prefix Opcodes */ /* Program Prefix Opcodes */
preop = 0;
/* 0:7 Prefix Opcode 1 */ /* 0:7 Prefix Opcode 1 */
preop = (op->preop[0]); preop = (op->preop[0]);
/* 8:16 Prefix Opcode 2 */ /* 8:16 Prefix Opcode 2 */

View File

@ -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++, 0x30000, 32*1024);
do_block(bios, buf, i++, 0x38000, 8*1024); do_block(bios, buf, i++, 0x38000, 8*1024);
do_block(bios, buf, i++, 0x3a000, 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"); printf("\n");
return 0; return 0;