We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d59ae34 commit eb94206Copy full SHA for eb94206
boot/bootutil/src/loader.c
@@ -1929,8 +1929,7 @@ boot_prepare_image_for_update(struct boot_loader_state *state,
1929
rc = boot_read_image_headers(state, !boot_status_is_reset(bs), bs);
1930
#ifdef MCUBOOT_BOOTSTRAP
1931
/* When bootstrapping it's OK to not have image magic in the primary slot */
1932
- if (rc != 0 && (BOOT_CURR_IMG(state) != BOOT_PRIMARY_SLOT ||
1933
- boot_check_header_erased(state, BOOT_PRIMARY_SLOT) != 0)) {
+ if (rc != 0 && boot_check_header_erased(state, BOOT_PRIMARY_SLOT) != 0) {
1934
#else
1935
if (rc != 0) {
1936
#endif
0 commit comments