summaryrefslogtreecommitdiff
path: root/ichspi.c
diff options
context:
space:
mode:
authorstuge <stuge@2b7e53f0-3cfb-0310-b3e9-8179ed1497e1>2008-07-07 05:14:06 +0000
committerstuge <stuge@2b7e53f0-3cfb-0310-b3e9-8179ed1497e1>2008-07-07 05:14:06 +0000
commite0b01e8016f8a21b3ba497c081328de7cce18416 (patch)
treefb30c50bcfa3015281f8ecca3a6ae92b394063e3 /ichspi.c
parent56c01035da16435ab7d6ab8cd4a5f839fd2bba88 (diff)
downloadflashrom-e0b01e8016f8a21b3ba497c081328de7cce18416.tar.gz
Original v2 revision: 3417
flashrom: Trivial indent fix in ichspi.c Signed-off-by: Peter Stuge <peter@stuge.se> Acked-by: Peter Stuge <peter@stuge.se> git-svn-id: https://code.coreboot.org/svn/flashrom/trunk@301 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'ichspi.c')
-rw-r--r--ichspi.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ichspi.c b/ichspi.c
index 492f548..93887b3 100644
--- a/ichspi.c
+++ b/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);