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>
This commit is contained in:
parent
076e1488e1
commit
c562cbc284
1 changed files with 2 additions and 1 deletions
|
|
@ -285,13 +285,14 @@ int img_mgmt_get_next_boot_slot(int image, enum img_mgmt_next_boot_type *type)
|
|||
return_slot = other_slot;
|
||||
}
|
||||
}
|
||||
|
||||
out:
|
||||
#else
|
||||
if (rcs == 0 && rca == 0 && img_mgmt_vercmp(&aver, &over) < 0) {
|
||||
return_slot = other_slot;
|
||||
}
|
||||
#endif /* defined(CONFIG_MCUBOOT_BOOTLOADER_MODE_DIRECT_XIP_WITH_REVERT) */
|
||||
|
||||
out:
|
||||
if (type != NULL) {
|
||||
*type = lt;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue