boot: Remove pointless slot identification

In the boot_image_validate_encrypted there was call to
flash_area_id_to_multi_image_slot, which tries to figure out
slot index from flash area and image index, and the result of the
call was not used for anything as slot index is hardcoded in the
next call to be 1 (secondary).

Signed-off-by: Dominik Ermel <dominik.ermel@nordicsemi.no>
(cherry picked from commit 4da4a72cb1)
This commit is contained in:
Dominik Ermel 2024-07-12 19:44:46 +00:00 committed by Jamie McCrae
parent 2cd6ce9fb9
commit 071b3b8e0f
1 changed files with 0 additions and 4 deletions

View File

@ -40,10 +40,6 @@ boot_image_validate_encrypted(const struct flash_area *fa_p,
if (rc < 0) {
FIH_RET(fih_rc);
}
rc = flash_area_id_to_multi_image_slot(image_index, flash_area_get_id(fa_p));
if (rc < 0) {
FIH_RET(fih_rc);
}
rc = boot_enc_set_key(BOOT_CURR_ENC(state), 1, bs);
if (rc < 0) {
FIH_RET(fih_rc);