summaryrefslogtreecommitdiff
path: root/sys/netinet
diff options
context:
space:
mode:
authorCharles Longeau <chl@cvs.openbsd.org>2010-01-28 23:23:55 +0000
committerCharles Longeau <chl@cvs.openbsd.org>2010-01-28 23:23:55 +0000
commit1df365cf897dafa6cd08b7503b4cb2be38ba9434 (patch)
treeb3895c6cf6bb4ca2bfb3f5f67174dc90380bb514 /sys/netinet
parent430e444d8dfb2dbaca94b443a9519fe99f85200e (diff)
Remove dead assignment and newly created unused variable.
Found by LLVM/Clang Static Analyzer. ok krw@ henning@
Diffstat (limited to 'sys/netinet')
-rw-r--r--sys/netinet/ip_ipip.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/sys/netinet/ip_ipip.c b/sys/netinet/ip_ipip.c
index a2e171b8e16..bfc586a86f1 100644
--- a/sys/netinet/ip_ipip.c
+++ b/sys/netinet/ip_ipip.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ip_ipip.c,v 1.44 2009/11/03 10:59:04 claudio Exp $ */
+/* $OpenBSD: ip_ipip.c,v 1.45 2010/01/28 23:23:54 chl Exp $ */
/*
* The authors of this code are John Ioannidis (ji@tla.org),
* Angelos D. Keromytis (kermit@csd.uch.gr) and
@@ -154,7 +154,6 @@ ipip_input(struct mbuf *m, int iphlen, struct ifnet *gifp)
struct ip6_hdr *ip6 = NULL;
u_int8_t itos;
#endif
- u_int8_t nxt;
int isr;
u_int8_t otos;
u_int8_t v;
@@ -260,7 +259,6 @@ ipip_input(struct mbuf *m, int iphlen, struct ifnet *gifp)
#ifdef INET
case 4:
ipo = mtod(m, struct ip *);
- nxt = ipo->ip_p;
if (!ip_ecn_egress(ECN_ALLOWED, &otos, &ipo->ip_tos)) {
m_freem(m);
return;
@@ -270,7 +268,6 @@ ipip_input(struct mbuf *m, int iphlen, struct ifnet *gifp)
#ifdef INET6
case 6:
ip6 = (struct ip6_hdr *) ipo;
- nxt = ip6->ip6_nxt;
itos = (ntohl(ip6->ip6_flow) >> 20) & 0xff;
if (!ip_ecn_egress(ECN_ALLOWED, &otos, &itos)) {
m_freem(m);