projects
/
fw
/
openocd
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
flash/nor: Do not update 'is_erased'
[fw/openocd]
/
src
/
flash
/
nor
/
str9x.c
diff --git
a/src/flash/nor/str9x.c
b/src/flash/nor/str9x.c
index 5c3a9cb2b7edbada8f8c0a195ed6eae032dddf8e..8f39d75fa5f591c02bcc457b709f3b1bf88fb3fe 100644
(file)
--- a/
src/flash/nor/str9x.c
+++ b/
src/flash/nor/str9x.c
@@
-300,9
+300,6
@@
static int str9x_erase(struct flash_bank *bank, unsigned int first,
break;
}
- for (unsigned int i = first; i <= last; i++)
- bank->sectors[i].is_erased = 1;
-
return ERROR_OK;
}