Skip to content

Commit 40a0c6a

Browse files
de-nordicjfischer-no
authored andcommitted
[nrf noup] mgmt/MCUmgr/grp/img: Move out label to make compiler happy
Move it inside ifdef. Signed-off-by: Dominik Ermel <[email protected]> (cherry picked from commit 16d6edb)
1 parent adbf47e commit 40a0c6a

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
@@ -290,13 +290,14 @@ int img_mgmt_get_next_boot_slot(int image, enum img_mgmt_next_boot_type *type)
290290
return_slot = other_slot;
291291
}
292292
}
293+
out:
294+
293295
#else
294296
if (rcs == 0 && rca == 0 && img_mgmt_vercmp(&aver, &over) < 0) {
295297
return_slot = other_slot;
296298
}
297299
#endif /* defined(CONFIG_MCUBOOT_BOOTLOADER_MODE_DIRECT_XIP_WITH_REVERT) */
298300

299-
out:
300301
if (type != NULL) {
301302
*type = lt;
302303
}

0 commit comments

Comments
 (0)