summaryrefslogtreecommitdiffstats
path: root/sys/netinet6/raw_ip6.c
diff options
context:
space:
mode:
authorchl <chl@openbsd.org>2008-09-17 05:43:14 +0000
committerchl <chl@openbsd.org>2008-09-17 05:43:14 +0000
commit34223ca49176ac6ac834d357b652b28567fec4c1 (patch)
tree1fb6c88a7654a935854486436f11ed17c9f5bd16 /sys/netinet6/raw_ip6.c
parentregen (diff)
downloadwireguard-openbsd-34223ca49176ac6ac834d357b652b28567fec4c1.tar.xz
wireguard-openbsd-34223ca49176ac6ac834d357b652b28567fec4c1.zip
remove dead stores and newly created unused variables.
Found by LLVM/Clang Static Analyzer. ok henning@ mpf@
Diffstat (limited to 'sys/netinet6/raw_ip6.c')
-rw-r--r--sys/netinet6/raw_ip6.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/sys/netinet6/raw_ip6.c b/sys/netinet6/raw_ip6.c
index e6c8c64e44d..94a20b2e640 100644
--- a/sys/netinet6/raw_ip6.c
+++ b/sys/netinet6/raw_ip6.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: raw_ip6.c,v 1.36 2008/06/11 19:00:50 mcbride Exp $ */
+/* $OpenBSD: raw_ip6.c,v 1.37 2008/09/17 05:43:15 chl Exp $ */
/* $KAME: raw_ip6.c,v 1.69 2001/03/04 15:55:44 itojun Exp $ */
/*
@@ -253,8 +253,6 @@ void
rip6_ctlinput(int cmd, struct sockaddr *sa, void *d)
{
struct ip6_hdr *ip6;
- struct mbuf *m;
- int off;
struct ip6ctlparam *ip6cp = NULL;
const struct sockaddr_in6 *sa6_src = NULL;
void *cmdarg;
@@ -279,14 +277,11 @@ rip6_ctlinput(int cmd, struct sockaddr *sa, void *d)
/* if the parameter is from icmp6, decode it. */
if (d != NULL) {
ip6cp = (struct ip6ctlparam *)d;
- m = ip6cp->ip6c_m;
ip6 = ip6cp->ip6c_ip6;
- off = ip6cp->ip6c_off;
cmdarg = ip6cp->ip6c_cmdarg;
sa6_src = ip6cp->ip6c_src;
nxt = ip6cp->ip6c_nxt;
} else {
- m = NULL;
ip6 = NULL;
cmdarg = NULL;
sa6_src = &sa6_any;