From fae24057dfa93ecd0a90af1c602401b6fc8b49b4 Mon Sep 17 00:00:00 2001 From: Oleg Hahm <oleg@hobbykeller.org> Date: Fri, 10 Mar 2017 15:51:47 +0100 Subject: [PATCH] conn: udp: eliminate redundant assignment --- sys/net/gnrc/conn/udp/gnrc_conn_udp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/net/gnrc/conn/udp/gnrc_conn_udp.c b/sys/net/gnrc/conn/udp/gnrc_conn_udp.c index 89ee02443b..7d9b010582 100644 --- a/sys/net/gnrc/conn/udp/gnrc_conn_udp.c +++ b/sys/net/gnrc/conn/udp/gnrc_conn_udp.c @@ -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, 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 */ hdr = gnrc_udp_hdr_build(pkt, sport, dport); -- GitLab