Skip to content

Commit c562cbc

Browse files
nordicjmkartben
authored andcommitted
mgmt: mcumgr: grp: img_mgmt: Fix unused label warning
Fixes an issue with a warning when compiling for direct xip mode without revert Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
1 parent 076e148 commit c562cbc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

subsys/mgmt/mcumgr/grp/img_mgmt/src/img_mgmt_state.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -285,13 +285,14 @@ int img_mgmt_get_next_boot_slot(int image, enum img_mgmt_next_boot_type *type)
285285
return_slot = other_slot;
286286
}
287287
}
288+
289+
out:
288290
#else
289291
if (rcs == 0 && rca == 0 && img_mgmt_vercmp(&aver, &over) < 0) {
290292
return_slot = other_slot;
291293
}
292294
#endif /* defined(CONFIG_MCUBOOT_BOOTLOADER_MODE_DIRECT_XIP_WITH_REVERT) */
293295

294-
out:
295296
if (type != NULL) {
296297
*type = lt;
297298
}

0 commit comments

Comments
 (0)