net: openthread: Fix u16_t usage

PR #25936 introduced u16_t type usage and was merged after the type
transition in Zephyr.

Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no>
This commit is contained in:
Robert Lubos 2020-06-10 16:00:54 +02:00 committed by Anas Nashif
commit 7f9b85e8c3

View file

@ -60,7 +60,7 @@ int pkt_list_add(struct openthread_context *context, struct net_pkt *pkt)
void pkt_list_remove_first(struct openthread_context *context) void pkt_list_remove_first(struct openthread_context *context)
{ {
u16_t idx = context->pkt_list_in_idx; uint16_t idx = context->pkt_list_in_idx;
if (idx == 0U) { if (idx == 0U) {
idx = CONFIG_OPENTHREAD_PKT_LIST_SIZE - 1; idx = CONFIG_OPENTHREAD_PKT_LIST_SIZE - 1;