Skip to content

Commit fb91566

Browse files
committed
mcumgr: img_mgmt: Fix minor issues
Fix a few typos, that were found during review. Signed-off-by: Tomasz Chyrowicz <[email protected]>
1 parent 56d1074 commit fb91566

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

subsys/mgmt/mcumgr/grp/img_mgmt/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ config MCUMGR_GRP_IMG_NRF
1010
bool "Use an extended version of the image management implementation"
1111
depends on MCUMGR_GRP_IMG
1212
default y if PARTITION_MANAGER_ENABLED
13+
default y if MCUMGR_GRP_IMG_TOO_LARGE_BOOTLOADER_INFO
1314
help
1415
Enables use of an extended version of the image management implementation that adds
1516
Nordic-specific functionalities.

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

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ static bool img_mgmt_slot_max_size(size_t *area_sizes, zcbor_state_t *zse)
191191

192192
ARG_UNUSED(area_sizes);
193193

194-
rc = blinfo_lookup(BLINFO_MAX_APPLICATION_SIZE, &max_app_size, sizeof(max_app_size))
194+
rc = blinfo_lookup(BLINFO_MAX_APPLICATION_SIZE, &max_app_size, sizeof(max_app_size));
195195

196196
if (rc < 0) {
197197
LOG_ERR("Failed to lookup max application size: %d", rc);
@@ -651,7 +651,7 @@ static int img_mgmt_slot_info(struct smp_streamer *ctxt)
651651
}
652652

653653
#if defined(CONFIG_MCUMGR_GRP_IMG_TOO_LARGE_SYSBUILD) || \
654-
defined(MCUMGR_GRP_IMG_TOO_LARGE_BOOTLOADER_INFO)
654+
defined(CONFIG_MCUMGR_GRP_IMG_TOO_LARGE_BOOTLOADER_INFO)
655655
ok = img_mgmt_slot_max_size(area_sizes, zse);
656656

657657
if (!ok) {
@@ -1140,8 +1140,6 @@ static const struct mgmt_handler img_mgmt_handlers[] = {
11401140
#endif
11411141
};
11421142

1143-
static const struct mgmt_handler img_mgmt_handlers[];
1144-
11451143
#define IMG_MGMT_HANDLER_CNT ARRAY_SIZE(img_mgmt_handlers)
11461144

11471145
static struct mgmt_group img_mgmt_group = {

0 commit comments

Comments
 (0)