From 34f2a3e06c84551a81eec1ab058e5d6fd1a6a377 Mon Sep 17 00:00:00 2001 From: Dominik Ermel <56024351+de-nordic@users.noreply.github.com> Date: Thu, 7 Mar 2024 19:04:02 +0100 Subject: [PATCH] Update boot/bootutil/src/loader.c Co-authored-by: Andrzej Puzdrowski --- boot/bootutil/src/loader.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/boot/bootutil/src/loader.c b/boot/bootutil/src/loader.c index 41a11e86d..807a566c6 100644 --- a/boot/bootutil/src/loader.c +++ b/boot/bootutil/src/loader.c @@ -347,6 +347,11 @@ boot_verify_slot_dependency(struct boot_loader_state *state, /* Dependency satisfied. */ rc = 0; } +#else + if (rc >= 0) { + /* Dependency satisfied. */ + rc = 0; + } #endif return rc;