Commit c562cbc2 authored by Jamie McCrae's avatar Jamie McCrae Committed by Benjamin Cabé
Browse files

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: default avatarJamie McCrae <jamie.mccrae@nordicsemi.no>
parent 076e1488
Loading
Loading
Loading
Loading
+2 −1
Changes for subsys/mgmt/mcumgr/grp/img_mgmt/src/img_mgmt_state.c: 2 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -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;
	}