Skip to content
Snippets Groups Projects
Commit 6504671a authored by Martine Lenders's avatar Martine Lenders
Browse files

Merge pull request #5179 from OlegHahm/ipv6_recv_assert_instead_check

gnrc ipv6: replace check by assert
parents 37687428 f15e038e
No related branches found
No related tags found
No related merge requests found
...@@ -14,7 +14,10 @@ ...@@ -14,7 +14,10 @@
* The IPv6 control thread understands messages of type * The IPv6 control thread understands messages of type
* *
* * @ref GNRC_NETAPI_MSG_TYPE_RCV, and * * @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) ...@@ -764,9 +764,8 @@ static void _receive(gnrc_pktsnip_t *pkt)
netif = gnrc_pktsnip_search_type(pkt, GNRC_NETTYPE_NETIF); netif = gnrc_pktsnip_search_type(pkt, GNRC_NETTYPE_NETIF);
if (netif != NULL) { assert(netif);
iface = ((gnrc_netif_hdr_t *)netif->data)->if_pid; iface = ((gnrc_netif_hdr_t *)netif->data)->if_pid;
}
first_ext = pkt; first_ext = pkt;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment