Skip to content

Commit 0674798

Browse files
de-nordicnordicjm
authored andcommitted
zephyr: Remove scratch from flash_area_id_from_multi_image_slot
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]>
1 parent cd22b69 commit 0674798

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

boot/zephyr/flash_map_extended.c

-3
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,6 @@ int flash_area_id_from_multi_image_slot(int image_index, int slot)
6262
case 0: return FLASH_AREA_IMAGE_PRIMARY(image_index);
6363
#if !defined(CONFIG_SINGLE_APPLICATION_SLOT)
6464
case 1: return FLASH_AREA_IMAGE_SECONDARY(image_index);
65-
#endif
66-
#if defined(CONFIG_BOOT_SWAP_USING_SCRATCH)
67-
case 2: return FLASH_AREA_IMAGE_SCRATCH;
6865
#endif
6966
}
7067

0 commit comments

Comments
 (0)