Skip to content

Commit

Permalink
zephyr: Remove scratch from flash_area_id_from_multi_image_slot
Browse files Browse the repository at this point in the history
The mapping does not seem to be needed as scratch is opened directly,
and there is only one for all images anyway.
Simulator seems to error out when asked to identify scratch with
this function.

Signed-off-by: Dominik Ermel <[email protected]>
  • Loading branch information
de-nordic authored and nordicjm committed Jan 20, 2025
1 parent cd22b69 commit 0674798
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions boot/zephyr/flash_map_extended.c
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,6 @@ int flash_area_id_from_multi_image_slot(int image_index, int slot)
case 0: return FLASH_AREA_IMAGE_PRIMARY(image_index);
#if !defined(CONFIG_SINGLE_APPLICATION_SLOT)
case 1: return FLASH_AREA_IMAGE_SECONDARY(image_index);
#endif
#if defined(CONFIG_BOOT_SWAP_USING_SCRATCH)
case 2: return FLASH_AREA_IMAGE_SCRATCH;
#endif
}

Expand Down

0 comments on commit 0674798

Please sign in to comment.