flash/nor: Do not update 'is_erased'
[fw/openocd] / src / flash / nor / xmc1xxx.c
index a519ab864302d2bc177bde6ddd11bf81132c51c8..9e5f0a3ddd7ce2937ed07380b2eab62112e9bb9b 100644 (file)
@@ -141,9 +141,6 @@ static int xmc1xxx_erase(struct flash_bank *bank, unsigned int first,
                goto err_run;
        }
 
-       for (unsigned int sector = first; sector <= last; sector++)
-               bank->sectors[sector].is_erased = 1;
-
 err_run:
        for (i = 0; i < ARRAY_SIZE(reg_params); i++)
                destroy_reg_param(&reg_params[i]);