From c06606960fb85f3a6f7210e9f1b8f2321937cf60 Mon Sep 17 00:00:00 2001 From: Martine Lenders Date: Mon, 7 Jan 2019 15:05:02 +0100 Subject: [PATCH] fixup! gnrc_netif: centralize function to get l2addr NETOPT --- sys/net/gnrc/netif/gnrc_netif_device_type.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sys/net/gnrc/netif/gnrc_netif_device_type.c b/sys/net/gnrc/netif/gnrc_netif_device_type.c index 06ec82332a10..6f50b9d54cac 100644 --- a/sys/net/gnrc/netif/gnrc_netif_device_type.c +++ b/sys/net/gnrc/netif/gnrc_netif_device_type.c @@ -41,6 +41,7 @@ netopt_t gnrc_netif_get_l2addr_opt(gnrc_netif_t *netif) r = dev->driver->get(dev, NETOPT_SRC_LEN, &tmp, sizeof(tmp)); assert(r == sizeof(tmp)); assert(r <= ((int)UINT8_MAX)); + (void)r; netif->l2addr_len = (uint8_t)tmp; if (tmp == IEEE802154_LONG_ADDRESS_LEN) { res = NETOPT_ADDRESS_LONG;