diff options
Diffstat (limited to 'sst28sf040.c')
-rw-r--r-- | sst28sf040.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/sst28sf040.c b/sst28sf040.c index c5f27a4..9ba0541 100644 --- a/sst28sf040.c +++ b/sst28sf040.c @@ -122,12 +122,6 @@ int write_28sf040(struct flashchip *flash, uint8_t *buf) msg_cinfo("Programming page: "); for (i = 0; i < total_size / page_size; i++) { - /* erase the page before programming */ - if (erase_sector_28sf040(flash, i * page_size, page_size)) { - msg_cerr("ERASE FAILED!\n"); - return -1; - } - /* write to the sector */ msg_cinfo("%04d at address: 0x%08x", i, i * page_size); write_sector_28sf040(bios, buf + i * page_size, |