]> git.gag.com Git - fw/openocd/blobdiff - src/flash/nor/fm4.c
flash/nor: Do not update 'is_erased'
[fw/openocd] / src / flash / nor / fm4.c
index 592ccb6033992971926c15cf9180c76f8c244067..09865d2ab77ff16bcae0ae4e4845af23012d088d 100644 (file)
@@ -177,8 +177,6 @@ static int fm4_flash_erase(struct flash_bank *bank, unsigned int first,
                        goto err_run_ret;
                } else
                        retval = ERROR_OK;
-
-               bank->sectors[sector].is_erased = 1;
        }
 
 err_run_ret: