mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-01-18 12:52:44 +01:00
6lowpan: replace duplicate function call
datagram_size is already set to the value returned by gnrc_pkt_len(), no need to call it again.
This commit is contained in:
parent
478a5e5030
commit
b1ae07ca82
@ -257,7 +257,7 @@ static void _send(gnrc_pktsnip_t *pkt)
|
||||
|
||||
/* IP should not send anything here if it is not a 6LoWPAN interface,
|
||||
* so we don't need to check for NULL pointers */
|
||||
if (gnrc_pkt_len(pkt2->next) <= iface->max_frag_size) {
|
||||
if (datagram_size <= iface->max_frag_size) {
|
||||
DEBUG("6lo: Send SND command for %p to %" PRIu16 "\n",
|
||||
(void *)pkt2, hdr->if_pid);
|
||||
gnrc_netapi_send(hdr->if_pid, pkt2);
|
||||
|
Loading…
Reference in New Issue
Block a user