net: lwm2m: remove unused len var from lwm2m_engine_get()

During conversion from the ZoAP to CoAP APIs the use for this variable
was removed, but the variable itself was left in place.

Signed-off-by: Michael Scott <michael.scott@linaro.org>
This commit is contained in:
Michael Scott 2017-10-26 23:37:39 -07:00 committed by Jukka Rissanen
commit 7fa099b67e

View file

@ -1372,7 +1372,6 @@ static int lwm2m_engine_get(char *pathstr, void *buf, u16_t buflen)
struct lwm2m_engine_obj_inst *obj_inst;
struct lwm2m_engine_obj_field *obj_field;
struct lwm2m_engine_res_inst *res = NULL;
u16_t len = 0;
void *data_ptr = NULL;
size_t data_len = 0;
@ -1440,7 +1439,6 @@ static int lwm2m_engine_get(char *pathstr, void *buf, u16_t buflen)
case LWM2M_RES_TYPE_STRING:
strncpy((u8_t *)buf, (u8_t *)data_ptr, buflen);
len = strlen(buf);
break;
case LWM2M_RES_TYPE_U64: