Skip to content

Commit

Permalink
boot: Remove pointless slot identification
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
de-nordic authored and nvlsianpu committed Jul 23, 2024
1 parent c4b89ba commit 4da4a72
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions boot/boot_serial/src/boot_serial_encryption.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 4da4a72

Please sign in to comment.