From 7043983acc31c6a2002dc1afb8addbb918e43318 Mon Sep 17 00:00:00 2001 From: goldsimon Date: Sun, 25 Mar 2012 17:20:22 +0200 Subject: [PATCH] udp_input: fixed unreachable code warning for CHECKSUM_CHECK_UDP==0 --- src/core/udp.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/core/udp.c b/src/core/udp.c index 1086fb03..bba4a1ce 100644 --- a/src/core/udp.c +++ b/src/core/udp.c @@ -472,6 +472,7 @@ udp_input(struct pbuf *p, struct netif *inp) end: PERF_STOP("udp_input"); return; +#if CHECKSUM_CHECK_UDP chkerr: LWIP_DEBUGF(UDP_DEBUG | LWIP_DBG_LEVEL_SERIOUS, ("udp_input: UDP (or UDP Lite) datagram discarded due to failing checksum\n")); @@ -480,6 +481,7 @@ chkerr: snmp_inc_udpinerrors(); pbuf_free(p); PERF_STOP("udp_input"); +#endif /* CHECKSUM_CHECK_UDP */ } /**