summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authormaxv <maxv@NetBSD.org>2018-04-15 08:31:18 +0000
committermaxv <maxv@NetBSD.org>2018-04-15 08:31:18 +0000
commit64a4e993bc548e45e75161e6e095d7aea0e709d3 (patch)
tree938adc5c36c3c89cb74eeb3a74881ee80c0b7cfd /sys
parent65fa378aefb2c0255edf8986086c7972eea13b15 (diff)
Remove useless DIAGNOSTIC block, the caller already ensures the
assumptions, and here we're not doing anything (it should be a panic rather than a printf).
Diffstat (limited to 'sys')
-rw-r--r--sys/netinet6/ip6_input.c16
1 files changed, 2 insertions, 14 deletions
diff --git a/sys/netinet6/ip6_input.c b/sys/netinet6/ip6_input.c
index ed0cd550f38..d98417bda1a 100644
--- a/sys/netinet6/ip6_input.c
+++ b/sys/netinet6/ip6_input.c
@@ -1,4 +1,4 @@
-/* $NetBSD: ip6_input.c,v 1.197 2018/04/15 07:35:49 maxv Exp $ */
+/* $NetBSD: ip6_input.c,v 1.198 2018/04/15 08:31:18 maxv Exp $ */
/* $KAME: ip6_input.c,v 1.188 2001/03/29 05:34:31 itojun Exp $ */
/*
@@ -62,7 +62,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ip6_input.c,v 1.197 2018/04/15 07:35:49 maxv Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ip6_input.c,v 1.198 2018/04/15 08:31:18 maxv Exp $");
#ifdef _KERNEL_OPT
#include "opt_gateway.h"
@@ -1318,18 +1318,6 @@ ip6_pullexthdr(struct mbuf *m, size_t off, int nxt)
size_t elen;
struct mbuf *n;
-#ifdef DIAGNOSTIC
- switch (nxt) {
- case IPPROTO_DSTOPTS:
- case IPPROTO_ROUTING:
- case IPPROTO_HOPOPTS:
- case IPPROTO_AH: /* is it possible? */
- break;
- default:
- printf("ip6_pullexthdr: invalid nxt=%d\n", nxt);
- }
-#endif
-
m_copydata(m, off, sizeof(ip6e), (void *)&ip6e);
if (nxt == IPPROTO_AH)
elen = (ip6e.ip6e_len + 2) << 2;