diff options
author | Li-Ta Lo <ollie@lanl.gov> | 2004-03-20 17:05:01 +0000 |
---|---|---|
committer | Li-Ta Lo <ollie@lanl.gov> | 2004-03-20 17:05:01 +0000 |
commit | e8274965d7c6a4b8d92076df74518cbdecf79090 (patch) | |
tree | f2ab3ede31d1a07aff713293300229bdb4af55c1 | |
parent | fbf43ac5a6d90468b4f32c0ea0fc29bd41fabf87 (diff) |
I have no idea what i was trying to show off when I used the while loop rather
than for loop. Please forgive me, I was too young 4 years ago.
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@1458 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
-rw-r--r-- | util/flash_and_burn/flash_rom.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/util/flash_and_burn/flash_rom.c b/util/flash_and_burn/flash_rom.c index 0213005b92..dff8d182d7 100644 --- a/util/flash_and_burn/flash_rom.c +++ b/util/flash_and_burn/flash_rom.c @@ -148,12 +148,12 @@ struct flashchip *probe_flash(struct flashchip *flash) int verify_flash(struct flashchip *flash, char *buf, int verbose) { - int i = 0; + int i; int total_size = flash->total_size * 1024; volatile char *bios = flash->virt_addr; printf("Verifying address: "); - while (i < total_size) { + for (i = 0; i < total_size; i++) { if (verbose) printf("0x%08x", i); if (*(bios + i) != *(buf + i)) { @@ -162,7 +162,6 @@ int verify_flash(struct flashchip *flash, char *buf, int verbose) } if (verbose) printf("\b\b\b\b\b\b\b\b\b\b"); - i++; } if (verbose) printf("\n"); |