flash/nor/efr32: fixed lockbits and user data
[fw/openocd] / src / flash / nor / numicro.c
index ce3973b9f331a3764be399a1b8b886b018d51161..cb7c1df836f3605ab5c10f1da228f40c7efb4c39 100644 (file)
@@ -1532,8 +1532,6 @@ static int numicro_erase(struct flash_bank *bank, unsigned int first,
                        retval = target_write_u32(target, NUMICRO_FLASH_ISPCON, (status | ISPCON_ISPFF));
                        if (retval != ERROR_OK)
                                return retval;
-               } else {
-                       bank->sectors[i].is_erased = 1;
                }
        }