diff --git a/subsys/mgmt/mcumgr/grp/shell_mgmt/include/mgmt/mcumgr/grp/shell_mgmt/shell_mgmt_config.h b/subsys/mgmt/mcumgr/grp/shell_mgmt/include/mgmt/mcumgr/grp/shell_mgmt/shell_mgmt_config.h deleted file mode 100644 index 4e3df0038c2..00000000000 --- a/subsys/mgmt/mcumgr/grp/shell_mgmt/include/mgmt/mcumgr/grp/shell_mgmt/shell_mgmt_config.h +++ /dev/null @@ -1,13 +0,0 @@ -/* - * Copyright (c) 2018-2021 mcumgr authors - * - * SPDX-License-Identifier: Apache-2.0 - */ - -#ifndef H_SHELL_MGMT_CONFIG_ -#define H_SHELL_MGMT_CONFIG_ - -#define SHELL_MGMT_MAX_LINE_LEN CONFIG_SHELL_CMD_BUFF_SIZE -#define SHELL_MGMT_MAX_ARGC CONFIG_SHELL_ARGC_MAX - -#endif diff --git a/subsys/mgmt/mcumgr/grp/shell_mgmt/src/shell_mgmt.c b/subsys/mgmt/mcumgr/grp/shell_mgmt/src/shell_mgmt.c index 7bd65ea9e74..f18537e12b1 100644 --- a/subsys/mgmt/mcumgr/grp/shell_mgmt/src/shell_mgmt.c +++ b/subsys/mgmt/mcumgr/grp/shell_mgmt/src/shell_mgmt.c @@ -16,8 +16,6 @@ #include #include -#include - static int shell_exec(const char *line) { @@ -44,7 +42,7 @@ shell_mgmt_exec(struct smp_streamer *ctxt) { int rc; bool ok; - char line[SHELL_MGMT_MAX_LINE_LEN + 1]; + char line[CONFIG_SHELL_CMD_BUFF_SIZE + 1]; size_t len = 0; struct zcbor_string cmd_out; zcbor_state_t *zsd = ctxt->reader->zs; diff --git a/subsys/mgmt/mcumgr/grp/stat_mgmt/include/mgmt/mcumgr/grp/stat_mgmt/stat_mgmt_config.h b/subsys/mgmt/mcumgr/grp/stat_mgmt/include/mgmt/mcumgr/grp/stat_mgmt/stat_mgmt_config.h deleted file mode 100644 index 5094f264c74..00000000000 --- a/subsys/mgmt/mcumgr/grp/stat_mgmt/include/mgmt/mcumgr/grp/stat_mgmt/stat_mgmt_config.h +++ /dev/null @@ -1,12 +0,0 @@ -/* - * Copyright (c) 2018-2021 mcumgr authors - * - * SPDX-License-Identifier: Apache-2.0 - */ - -#ifndef H_STAT_MGMT_CONFIG_ -#define H_STAT_MGMT_CONFIG_ - -#define STAT_MGMT_MAX_NAME_LEN CONFIG_STAT_MGMT_MAX_NAME_LEN - -#endif diff --git a/subsys/mgmt/mcumgr/grp/stat_mgmt/src/stat_mgmt.c b/subsys/mgmt/mcumgr/grp/stat_mgmt/src/stat_mgmt.c index 153d7a45d7f..2f9f42d25f4 100644 --- a/subsys/mgmt/mcumgr/grp/stat_mgmt/src/stat_mgmt.c +++ b/subsys/mgmt/mcumgr/grp/stat_mgmt/src/stat_mgmt.c @@ -17,8 +17,6 @@ #include #include -#include - static struct mgmt_handler stat_mgmt_handlers[]; typedef int stat_mgmt_foreach_entry_fn(zcbor_state_t *zse, struct stat_mgmt_entry *entry); @@ -120,7 +118,7 @@ stat_mgmt_show(struct smp_streamer *ctxt) struct zcbor_string value = { 0 }; zcbor_state_t *zse = ctxt->writer->zs; zcbor_state_t *zsd = ctxt->reader->zs; - char stat_name[STAT_MGMT_MAX_NAME_LEN]; + char stat_name[CONFIG_STAT_MGMT_MAX_NAME_LEN]; bool ok; size_t counter = 0;