Skip to content

Commit

Permalink
fixup! net/link_layer: implement EUI provider
Browse files Browse the repository at this point in the history
  • Loading branch information
benpicco committed Jul 28, 2020
1 parent c2b7d79 commit 66c6f8a
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions sys/net/link_layer/eui_provider/eui_provider.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,7 @@ void netdev_eui48_get(netdev_t *netdev, eui48_t *addr)
{
unsigned i = EUI48_PROVIDER_NUMOF;
while (i--) {
#ifdef GNRC_NETIF_SINGLE
(void) netdev;
#else
#ifdef MODULE_NETDEV_REGISTER
if (eui48_conf[i].type != netdev->type &&
eui48_conf[i].type != NETDEV_ANY) {
continue;
Expand All @@ -34,6 +32,8 @@ void netdev_eui48_get(netdev_t *netdev, eui48_t *addr)
eui48_conf[i].index != NETDEV_INDEX_ANY) {
continue;
}
#else
(void) netdev;
#endif
if (eui48_conf[i].provider(eui48_conf[i].arg, addr) == 0) {
return;
Expand All @@ -47,9 +47,7 @@ void netdev_eui64_get(netdev_t *netdev, eui64_t *addr)
{
unsigned i = EUI64_PROVIDER_NUMOF;
while (i--) {
#ifdef GNRC_NETIF_SINGLE
(void) netdev;
#else
#ifdef MODULE_NETDEV_REGISTER
if (eui64_conf[i].type != netdev->type &&
eui64_conf[i].type != NETDEV_ANY) {
continue;
Expand All @@ -59,6 +57,8 @@ void netdev_eui64_get(netdev_t *netdev, eui64_t *addr)
eui64_conf[i].index != NETDEV_INDEX_ANY) {
continue;
}
#else
(void) netdev;
#endif
if (eui64_conf[i].provider(eui64_conf[i].arg, addr) == 0) {
return;
Expand Down

0 comments on commit 66c6f8a

Please sign in to comment.