Skip to content

Commit a9a760f

Browse files
committed
[nrf noup] loader: Too many params when calling bootutil_img_validate
There was one extra parameter when calling bootutil_img_validate() so remove it. Signed-off-by: Jukka Rissanen <[email protected]>
1 parent a290437 commit a9a760f

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

boot/bootutil/src/loader.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -773,13 +773,8 @@ boot_image_check(struct boot_loader_state *state, struct image_header *hdr,
773773
BOOT_LOG_DBG("Image validation attempt %d/%d", i, CONFIG_NCS_MCUBOOT_IMG_VALIDATE_ATTEMPT_COUNT);
774774
#endif /* CONFIG_NCS_MCUBOOT_IMG_VALIDATE_ATTEMPT_COUNT > 1 */
775775

776-
#if defined(MCUBOOT_SWAP_USING_OFFSET) && defined(MCUBOOT_SERIAL_RECOVERY)
777-
FIH_CALL(bootutil_img_validate, fih_rc, state, hdr, fap, tmpbuf, BOOT_TMPBUF_SZ,
778-
NULL, 0, NULL, 0);
779-
#else
780776
FIH_CALL(bootutil_img_validate, fih_rc, state, hdr, fap, tmpbuf, BOOT_TMPBUF_SZ,
781777
NULL, 0, NULL);
782-
#endif
783778

784779
if (FIH_EQ(fih_rc, FIH_SUCCESS)) {
785780
#if CONFIG_NCS_MCUBOOT_IMG_VALIDATE_ATTEMPT_COUNT > 1

0 commit comments

Comments
 (0)