From eff97c04ef058e2bd793e10701caf610d8261177 Mon Sep 17 00:00:00 2001 From: goldsimon Date: Wed, 3 May 2017 20:30:38 +0200 Subject: [PATCH] backport of "unreachable code" warnings from STM (why don't people report such things?) --- src/core/ipv6/icmp6.c | 2 -- src/core/ipv6/ip6.c | 1 - 2 files changed, 3 deletions(-) diff --git a/src/core/ipv6/icmp6.c b/src/core/ipv6/icmp6.c index 13416bd7..2302c8e6 100644 --- a/src/core/ipv6/icmp6.c +++ b/src/core/ipv6/icmp6.c @@ -122,7 +122,6 @@ icmp6_input(struct pbuf *p, struct netif *inp) case ICMP6_TYPE_PTB: /* Packet too big */ nd6_input(p, inp); return; - break; case ICMP6_TYPE_RS: #if LWIP_IPV6_FORWARD /* @todo implement router functionality */ @@ -134,7 +133,6 @@ icmp6_input(struct pbuf *p, struct netif *inp) case ICMP6_TYPE_MLD: mld6_input(p, inp); return; - break; #endif case ICMP6_TYPE_EREQ: #if !LWIP_MULTICAST_PING diff --git a/src/core/ipv6/ip6.c b/src/core/ipv6/ip6.c index f54dcb2f..19eace98 100644 --- a/src/core/ipv6/ip6.c +++ b/src/core/ipv6/ip6.c @@ -835,7 +835,6 @@ netif_found: } default: goto options_done; - break; } } options_done: