Merge pull request #5362 from cgundogan/pr/gnrc_ipv6/remove_unnecessary_check
gnrc_ipv6: remove superfluous check for if_entry
This commit is contained in:
commit
bf135c4750
@ -345,7 +345,7 @@ static void _send_to_iface(kernel_pid_t iface, gnrc_pktsnip_t *pkt)
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
#ifdef MODULE_GNRC_SIXLOWPAN
|
#ifdef MODULE_GNRC_SIXLOWPAN
|
||||||
if ((if_entry != NULL) && (if_entry->flags & GNRC_IPV6_NETIF_FLAGS_SIXLOWPAN)) {
|
if (if_entry->flags & GNRC_IPV6_NETIF_FLAGS_SIXLOWPAN) {
|
||||||
DEBUG("ipv6: send to 6LoWPAN instead\n");
|
DEBUG("ipv6: send to 6LoWPAN instead\n");
|
||||||
if (!gnrc_netapi_dispatch_send(GNRC_NETTYPE_SIXLOWPAN, GNRC_NETREG_DEMUX_CTX_ALL, pkt)) {
|
if (!gnrc_netapi_dispatch_send(GNRC_NETTYPE_SIXLOWPAN, GNRC_NETREG_DEMUX_CTX_ALL, pkt)) {
|
||||||
DEBUG("ipv6: no 6LoWPAN thread found");
|
DEBUG("ipv6: no 6LoWPAN thread found");
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user