From 5dc95de5e64638d5b95d7fd1fb7ef87887bfdbdc Mon Sep 17 00:00:00 2001 From: Peter Stuge Date: Mon, 7 Jul 2008 05:14:06 +0000 Subject: [PATCH] flashrom: Trivial indent fix in ichspi.c Signed-off-by: Peter Stuge Acked-by: Peter Stuge git-svn-id: svn://svn.coreboot.org/coreboot/trunk@3417 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1 --- util/flashrom/ichspi.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/util/flashrom/ichspi.c b/util/flashrom/ichspi.c index 492f548044..93887b3c33 100644 --- a/util/flashrom/ichspi.c +++ b/util/flashrom/ichspi.c @@ -573,9 +573,9 @@ int ich_spi_write(struct flashchip *flash, uint8_t * buf) break; } - if (flashbus == BUS_TYPE_VIA_SPI) { - maxdata = 16; - } + if (flashbus == BUS_TYPE_VIA_SPI) + maxdata = 16; + for (j = 0; j < erase_size / page_size; j++) { ich_spi_write_page(flash, (void *)(buf + (i * erase_size) + (j * page_size)), (i * erase_size) + (j * page_size), maxdata);