diff --git a/src/flash/nor/cfi.c b/src/flash/nor/cfi.c index 1fa3f2da6..954dbc217 100644 --- a/src/flash/nor/cfi.c +++ b/src/flash/nor/cfi.c @@ -305,14 +305,6 @@ static int cfi_reset(struct flash_bank *bank) static void cfi_intel_clear_status_register(struct flash_bank *bank) { - struct target *target = bank->target; - - if (target->state != TARGET_HALTED) - { - LOG_ERROR("BUG: attempted to clear status register while target wasn't halted"); - exit(-1); - } - cfi_send_command(bank, 0x50, flash_address(bank, 0, 0x0)); }