net: contiki: Fix compiling with ipv4

ip_buf_sent_status is only available for TCP, but uip_send_udp is only
called for UDP. Remove the else block.

Change-Id: I9695b33f975042ec15fde718d91ab901617437f2
Signed-off-by: Jaakko Hannikainen <jaakko.hannikainen@intel.com>
This commit is contained in:
Jaakko Hannikainen 2016-06-27 12:31:41 +03:00 committed by Jukka Rissanen
commit 51e517c08b

View file

@ -2269,8 +2269,6 @@ uip_send_udp(struct net_buf *buf, const void *data, int len)
if (!ret) {
PRINTF("Packet %p sending failed.\n", buf);
ip_buf_unref(buf);
} else {
ip_buf_sent_status(buf) = 0;
}
}
}