1
0
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:
Martine Lenders 2016-03-29 19:42:00 +02:00
commit 6504671a33
2 changed files with 6 additions and 4 deletions

View File

@ -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.
*
* @{
*

View File

@ -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;