mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-12-30 08:51:19 +01:00
Merge pull request #5179 from OlegHahm/ipv6_recv_assert_instead_check
gnrc ipv6: replace check by assert
This commit is contained in:
commit
6504671a33
@ -14,7 +14,10 @@
|
||||
* The IPv6 control thread understands messages of type
|
||||
*
|
||||
* * @ref GNRC_NETAPI_MSG_TYPE_RCV, and
|
||||
* * @ref GNRC_NETAPI_MSG_TYPE_SND,
|
||||
* * @ref GNRC_NETAPI_MSG_TYPE_SND.
|
||||
*
|
||||
* If the message is of type @ref GNRC_NETAPI_MSG_TYPE_RCV the provided @ref
|
||||
* gnrc_pktsnip_t must contain a snip of type @ref GNRC_NETTYPE_NETIF.
|
||||
*
|
||||
* @{
|
||||
*
|
||||
|
||||
@ -764,9 +764,8 @@ static void _receive(gnrc_pktsnip_t *pkt)
|
||||
|
||||
netif = gnrc_pktsnip_search_type(pkt, GNRC_NETTYPE_NETIF);
|
||||
|
||||
if (netif != NULL) {
|
||||
iface = ((gnrc_netif_hdr_t *)netif->data)->if_pid;
|
||||
}
|
||||
assert(netif);
|
||||
iface = ((gnrc_netif_hdr_t *)netif->data)->if_pid;
|
||||
|
||||
first_ext = pkt;
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user