1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-28 16:01:18 +01:00

ng_netif: don't shift entries upon remove

This commit is contained in:
Lotte Steenbrink 2015-05-26 10:33:09 -07:00
parent 138ac603de
commit e203eae8c6

View File

@ -80,15 +80,9 @@ void ng_netif_remove(kernel_pid_t pid)
if_handler[j].remove(pid);
}
break;
return;
}
}
for (; (i < (NG_NETIF_NUMOF - 1)) && (ifs[i + 1] != KERNEL_PID_UNDEF); i++) {
ifs[i] = ifs[i + 1];
}
ifs[i] = KERNEL_PID_UNDEF; /* set in case of i == (NG_NETIF_NUMOF - 1) */
}
size_t ng_netif_get(kernel_pid_t *netifs)