diff options
author | hailfinger <hailfinger@2b7e53f0-3cfb-0310-b3e9-8179ed1497e1> | 2010-10-10 16:10:49 +0000 |
---|---|---|
committer | hailfinger <hailfinger@2b7e53f0-3cfb-0310-b3e9-8179ed1497e1> | 2010-10-10 16:10:49 +0000 |
commit | 9ea2be2d2ae2b64591aa0ebd973563800d3e527a (patch) | |
tree | f5df1cca0b51c3227a47aa5968c816abcba49682 /82802ab.c | |
parent | 7f2ac0c4c6c40f475e790cc29c01f5427bd0c511 (diff) | |
download | flashrom-9ea2be2d2ae2b64591aa0ebd973563800d3e527a.tar.gz |
Simplify calls to inner write functions. No behavioural changes, just
equivalence transformations.
Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
Acked-by: Uwe Hermann <uwe@hermann-uwe.de>
git-svn-id: https://code.coreboot.org/svn/flashrom/trunk@1209 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to '82802ab.c')
-rw-r--r-- | 82802ab.c | 8 |
1 files changed, 1 insertions, 7 deletions
@@ -162,13 +162,7 @@ int write_page_82802ab(struct flashchip *flash, uint8_t *src, int start, int len int write_82802ab(struct flashchip *flash, uint8_t *buf) { - int i; - - for (i = 0; i < flash->total_size; i++) { - write_page_82802ab(flash, buf + i * 1024, i * 1024, 1024); - } - - return 0; + return write_page_82802ab(flash, buf, 0, flash->total_size * 1024); } int unlock_28f004s5(struct flashchip *flash) |