Skip to content

Commit f46f851

Browse files
de-nordicfabiobaltieri
authored andcommitted
mgmt: mcumgr: Remove zcbor_size_ definitions
zcbor supports native zcbor_size_ functions for some time now, so there is no need to have local zcbor_size_ definitions. Signed-off-by: Dominik Ermel <[email protected]>
1 parent 372b786 commit f46f851

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

subsys/mgmt/mcumgr/lib/cmd/img_mgmt/src/img_mgmt.c

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -29,16 +29,6 @@ const struct img_mgmt_dfu_callbacks_t *img_mgmt_dfu_callbacks_fn;
2929

3030
struct img_mgmt_state g_img_mgmt_state;
3131

32-
#if SIZE_MAX == UINT32_MAX
33-
#define zcbor_size_decode zcbor_uint32_decode
34-
#define zcbor_size_put zcbor_uint32_put
35-
#elif SIZE_MAX == UINT64_MAX
36-
#define zcbor_size_decode zcbor_uint64_decode
37-
#define zcbor_size_put zcbor_uint64_put
38-
#else
39-
#error "Unsupported size_t encoding"
40-
#endif
41-
4232
#ifdef CONFIG_IMG_MGMT_VERBOSE_ERR
4333
const char *img_mgmt_err_str_app_reject = "app reject";
4434
const char *img_mgmt_err_str_hdr_malformed = "header malformed";

0 commit comments

Comments
 (0)