summaryrefslogtreecommitdiffstats
path: root/sys/netinet6/icmp6.c
diff options
context:
space:
mode:
authorchl <chl@openbsd.org>2015-11-03 21:39:34 +0000
committerchl <chl@openbsd.org>2015-11-03 21:39:34 +0000
commitf90106b2ebcbbb91a1457a6e575cb32b6b784fcb (patch)
treea6025222703c8209440f5bdc1706ea9cc9680ea2 /sys/netinet6/icmp6.c
parentRemove dead assignment and newly created unused variable. (diff)
downloadwireguard-openbsd-f90106b2ebcbbb91a1457a6e575cb32b6b784fcb.tar.xz
wireguard-openbsd-f90106b2ebcbbb91a1457a6e575cb32b6b784fcb.zip
Remove dead assignments.
Found by LLVM/Clang Static Analyzer. ok bluhm@ mpi@
Diffstat (limited to 'sys/netinet6/icmp6.c')
-rw-r--r--sys/netinet6/icmp6.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/netinet6/icmp6.c b/sys/netinet6/icmp6.c
index 027bbcdc25e..90405ccb4c9 100644
--- a/sys/netinet6/icmp6.c
+++ b/sys/netinet6/icmp6.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: icmp6.c,v 1.176 2015/10/30 09:39:42 bluhm Exp $ */
+/* $OpenBSD: icmp6.c,v 1.177 2015/11/03 21:39:34 chl Exp $ */
/* $KAME: icmp6.c,v 1.217 2001/06/20 15:03:29 jinmei Exp $ */
/*
@@ -587,7 +587,6 @@ icmp6_input(struct mbuf **mp, int *offp, int proto)
n->m_next = n0;
} else {
deliverecho:
- nip6 = mtod(n, struct ip6_hdr *);
IP6_EXTHDR_GET(nicmp6, struct icmp6_hdr *, n, off,
sizeof(*nicmp6));
noff = off;