1
0
mirror of https://review.coreboot.org/flashrom.git synced 2025-04-26 22:52:34 +02:00

erasure_layout: Fix unreachable error message

Change-Id: I11d2d1359f74475cb20a1c91bddb380b4952a704
Spotted-by: Sergii Dmytruk <sergii.dmytruk@3mdeb.com>
Signed-off-by: Anastasia Klimchuk <aklm@flashrom.org>
Reviewed-on: https://review.coreboot.org/c/flashrom/+/84725
Reviewed-by: Sergii Dmytruk <sergii.dmytruk@3mdeb.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
Anastasia Klimchuk 2024-10-11 19:20:50 +11:00
parent 75dc0655b9
commit e60702d846

View File

@ -300,8 +300,8 @@ static int erase_write_helper(struct flashctx *const flashctx, chipoff_t region_
return -1; return -1;
} }
if (check_erased_range(flashctx, start_addr, block_len)) { if (check_erased_range(flashctx, start_addr, block_len)) {
return -1;
msg_cerr("ERASE FAILED!\n"); msg_cerr("ERASE FAILED!\n");
return -1;
} }
update_progress(flashctx, FLASHROM_PROGRESS_ERASE, block_len); update_progress(flashctx, FLASHROM_PROGRESS_ERASE, block_len);