This is an automated email from the ASF dual-hosted git repository.

mgorecki pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-mcumgr.git


The following commit(s) were added to refs/heads/master by this push:
     new 06c87b5  img_mgmt: Remove obsolete variable
06c87b5 is described below

commit 06c87b5fc5ce938810d1c2196a87bdf95c0d423d
Author: Michal Gorecki <[email protected]>
AuthorDate: Tue Jan 13 11:44:28 2026 +0100

    img_mgmt: Remove obsolete variable
    
    Variable was never set and was always 0.
---
 cmd/img_mgmt/include/img_mgmt/img_mgmt.h        | 1 -
 cmd/img_mgmt/include/img_mgmt/img_mgmt_config.h | 2 +-
 2 files changed, 1 insertion(+), 2 deletions(-)

diff --git a/cmd/img_mgmt/include/img_mgmt/img_mgmt.h 
b/cmd/img_mgmt/include/img_mgmt/img_mgmt.h
index 0e4230b..344681d 100644
--- a/cmd/img_mgmt/include/img_mgmt/img_mgmt.h
+++ b/cmd/img_mgmt/include/img_mgmt/img_mgmt.h
@@ -69,7 +69,6 @@ extern "C" {
 #define IMG_MGMT_ID_UPLOAD_STATUS_ONGOING       1
 #define IMG_MGMT_ID_UPLOAD_STATUS_COMPLETE      2
 
-extern int boot_current_slot;
 extern struct img_mgmt_state g_img_mgmt_state;
 
 /** Represents an individual upload request. */
diff --git a/cmd/img_mgmt/include/img_mgmt/img_mgmt_config.h 
b/cmd/img_mgmt/include/img_mgmt/img_mgmt_config.h
index 6f781aa..033790a 100644
--- a/cmd/img_mgmt/include/img_mgmt/img_mgmt_config.h
+++ b/cmd/img_mgmt/include/img_mgmt/img_mgmt_config.h
@@ -33,7 +33,7 @@
 #define IMG_MGMT_VERBOSE_ERR    MYNEWT_VAL(IMG_MGMT_VERBOSE_ERR)
 #define IMG_MGMT_LAZY_ERASE     MYNEWT_VAL(IMG_MGMT_LAZY_ERASE)
 #define IMG_MGMT_DUMMY_HDR      MYNEWT_VAL(IMG_MGMT_DUMMY_HDR)
-#define IMG_MGMT_BOOT_CURR_SLOT boot_current_slot
+#define IMG_MGMT_BOOT_CURR_SLOT 0
 
 #elif defined __ZEPHYR__
 

Reply via email to