1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-21 12:33:49 +01:00

conn: udp: eliminate redundant assignment

This commit is contained in:
Oleg Hahm 2017-03-10 15:51:47 +01:00
parent 93770edce4
commit fae24057df

View File

@ -93,7 +93,7 @@ int conn_udp_sendto(const void *data, size_t len, const void *src, size_t src_le
const void *dst, size_t dst_len, int family, uint16_t sport, const void *dst, size_t dst_len, int family, uint16_t sport,
uint16_t dport) uint16_t dport)
{ {
gnrc_pktsnip_t *pkt, *hdr = NULL; gnrc_pktsnip_t *pkt, *hdr;
pkt = gnrc_pktbuf_add(NULL, (void *)data, len, GNRC_NETTYPE_UNDEF); /* data will only be copied */ pkt = gnrc_pktbuf_add(NULL, (void *)data, len, GNRC_NETTYPE_UNDEF); /* data will only be copied */
hdr = gnrc_udp_hdr_build(pkt, sport, dport); hdr = gnrc_udp_hdr_build(pkt, sport, dport);