summaryrefslogtreecommitdiffstats
path: root/sys/netinet6
diff options
context:
space:
mode:
authormarkj <markj@FreeBSD.org>2016-02-12 20:55:22 +0000
committermarkj <markj@FreeBSD.org>2016-02-12 20:55:22 +0000
commit88e4f89c6dea379d1273bff2d18959a6ceee1f9c (patch)
treebe9f6db2add3e4330190b0529101e502cef3a8ea /sys/netinet6
parenta6ae90983efabb9784f1e105ffb29eaec3c0573c (diff)
downloadFreeBSD-src-88e4f89c6dea379d1273bff2d18959a6ceee1f9c.zip
FreeBSD-src-88e4f89c6dea379d1273bff2d18959a6ceee1f9c.tar.gz
Remove superfluous return statements from the neighbour discovery code.
MFC after: 1 week
Diffstat (limited to 'sys/netinet6')
-rw-r--r--sys/netinet6/nd6.c1
-rw-r--r--sys/netinet6/nd6_nbr.c2
-rw-r--r--sys/netinet6/nd6_rtr.c3
3 files changed, 0 insertions, 6 deletions
diff --git a/sys/netinet6/nd6.c b/sys/netinet6/nd6.c
index 3655b45..e30ace5 100644
--- a/sys/netinet6/nd6.c
+++ b/sys/netinet6/nd6.c
@@ -2512,7 +2512,6 @@ clear_llinfo_pqueue(struct llentry *ln)
}
ln->la_hold = NULL;
- return;
}
static int nd6_sysctl_drlist(SYSCTL_HANDLER_ARGS);
diff --git a/sys/netinet6/nd6_nbr.c b/sys/netinet6/nd6_nbr.c
index 3a4e8a0..1cb220d 100644
--- a/sys/netinet6/nd6_nbr.c
+++ b/sys/netinet6/nd6_nbr.c
@@ -584,7 +584,6 @@ nd6_ns_output_fib(struct ifnet *ifp, const struct in6_addr *saddr6,
bad:
m_freem(m);
- return;
}
#ifndef BURN_BRIDGES
@@ -1078,7 +1077,6 @@ nd6_na_output_fib(struct ifnet *ifp, const struct in6_addr *daddr6_0,
bad:
m_freem(m);
- return;
}
#ifndef BURN_BRIDGES
diff --git a/sys/netinet6/nd6_rtr.c b/sys/netinet6/nd6_rtr.c
index 895a06d..d9af24c 100644
--- a/sys/netinet6/nd6_rtr.c
+++ b/sys/netinet6/nd6_rtr.c
@@ -503,7 +503,6 @@ defrouter_addreq(struct nd_defrouter *new)
}
if (error == 0)
new->installed = 1;
- return;
}
struct nd_defrouter *
@@ -702,8 +701,6 @@ defrouter_select(void)
defrouter_delreq(installed_dr);
defrouter_addreq(selected_dr);
}
-
- return;
}
/*
OpenPOWER on IntegriCloud