diff options
Diffstat (limited to 'sst49lfxxxc.c')
-rw-r--r-- | sst49lfxxxc.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/sst49lfxxxc.c b/sst49lfxxxc.c index 2f14b7aa..f31e22cd 100644 --- a/sst49lfxxxc.c +++ b/sst49lfxxxc.c @@ -86,11 +86,6 @@ int write_49lfxxxc(struct flashchip *flash, uint8_t *buf) write_lockbits_49lfxxxc(flash, 0); msg_cinfo("Programming page: "); for (i = 0; i < total_size / page_size; i++) { - /* erase the page before programming */ - if (erase_sector_49lfxxxc(flash, i * page_size, flash->page_size)) { - msg_cerr("ERASE FAILED!\n"); - return -1; - } /* write to the sector */ msg_cinfo("%04d at address: 0x%08x", i, i * page_size); |