aboutsummaryrefslogtreecommitdiff
path: root/src/flash/nor/str7x.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/flash/nor/str7x.c')
-rw-r--r--src/flash/nor/str7x.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/flash/nor/str7x.c b/src/flash/nor/str7x.c
index 91ef77b7..57f860d6 100644
--- a/src/flash/nor/str7x.c
+++ b/src/flash/nor/str7x.c
@@ -726,12 +726,10 @@ static int str7x_write(struct flash_bank *bank, uint8_t *buffer,
/* data word 1 */
target_write_memory(target, str7x_get_flash_adr(bank, FLASH_DR0),
4, 1, last_dword);
- bytes_written += 4;
/* data word 2 */
target_write_memory(target, str7x_get_flash_adr(bank, FLASH_DR1),
4, 1, last_dword + 4);
- bytes_written += 4;
/* start programming cycle */
cmd = FLASH_DWPG | FLASH_WMS;