mirror of
https://review.coreboot.org/flashrom.git
synced 2025-07-01 22:21:16 +02:00
Simplify calls to inner write functions
No behavioural changes, just equivalence transformations. Corresponding to flashrom svn r1209. Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> Acked-by: Uwe Hermann <uwe@hermann-uwe.de>
This commit is contained in:
7
jedec.c
7
jedec.c
@ -411,16 +411,11 @@ int write_jedec(struct flashchip *flash, uint8_t *buf)
|
||||
|
||||
int write_jedec_1(struct flashchip *flash, uint8_t * buf)
|
||||
{
|
||||
int i;
|
||||
int mask;
|
||||
|
||||
mask = getaddrmask(flash);
|
||||
|
||||
for (i = 0; i < flash->total_size; i++) {
|
||||
write_sector_jedec_common(flash, buf + i * 1024, i * 1024, 1024, mask);
|
||||
}
|
||||
|
||||
return 0;
|
||||
return write_sector_jedec_common(flash, buf, 0, flash->total_size * 1024, mask);
|
||||
}
|
||||
|
||||
/* erase chip with block_erase() prototype */
|
||||
|
Reference in New Issue
Block a user