Commit 06747985 authored by Dominik Ermel's avatar Dominik Ermel Committed by Jamie
Browse files

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: default avatarDominik Ermel <dominik.ermel@nordicsemi.no>
parent cd22b693
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -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
    }