summaryrefslogtreecommitdiff
path: root/sys/netinet6/nd6_rtr.c
diff options
context:
space:
mode:
authorCharles Longeau <chl@cvs.openbsd.org>2008-09-17 05:43:16 +0000
committerCharles Longeau <chl@cvs.openbsd.org>2008-09-17 05:43:16 +0000
commit5f6fd068155984f4e44d62c940dcb6427f1b39ce (patch)
treea9afa45da3f9a74ce41b4ec9f55fc868ac23b0cc /sys/netinet6/nd6_rtr.c
parent896cd5462b21178d139193235696d72a6407fd60 (diff)
remove dead stores and newly created unused variables.
Found by LLVM/Clang Static Analyzer. ok henning@ mpf@
Diffstat (limited to 'sys/netinet6/nd6_rtr.c')
-rw-r--r--sys/netinet6/nd6_rtr.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/sys/netinet6/nd6_rtr.c b/sys/netinet6/nd6_rtr.c
index f0013ca8864..3df2c89ba3b 100644
--- a/sys/netinet6/nd6_rtr.c
+++ b/sys/netinet6/nd6_rtr.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: nd6_rtr.c,v 1.47 2008/06/11 19:00:50 mcbride Exp $ */
+/* $OpenBSD: nd6_rtr.c,v 1.48 2008/09/17 05:43:15 chl Exp $ */
/* $KAME: nd6_rtr.c,v 1.97 2001/02/07 11:09:13 itojun Exp $ */
/*
@@ -1045,7 +1045,6 @@ prelist_update(struct nd_prefix *new, struct nd_defrouter *dr,
struct nd_prefix *pr;
int s = splsoftnet();
int error = 0;
- int newprefix = 0;
int auth;
struct in6_addrlifetime lt6_tmp;
@@ -1101,8 +1100,6 @@ prelist_update(struct nd_prefix *new, struct nd_defrouter *dr,
} else {
struct nd_prefix *newpr = NULL;
- newprefix = 1;
-
if (new->ndpr_vltime == 0)
goto end;
if (new->ndpr_raf_onlink == 0 && new->ndpr_raf_auto == 0)