flash/nor: Do not update 'is_erased'
[fw/openocd] / src / flash / nor / str9x.c
index 5c3a9cb2b7edbada8f8c0a195ed6eae032dddf8e..8f39d75fa5f591c02bcc457b709f3b1bf88fb3fe 100644 (file)
@@ -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;
 }