aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander V. Chernikov <melifaro@FreeBSD.org>2020-09-20 21:32:52 +0000
committerAlexander V. Chernikov <melifaro@FreeBSD.org>2020-09-20 21:32:52 +0000
commit1440f62266cd056b1520e799c02406020e526c65 (patch)
treebd7fb61060fc4a29bb69597860b2d539b540d0c4
parent6507a8fecb167fcf8a52cb7fb20c2483020c41db (diff)
downloadsrc-1440f62266cd056b1520e799c02406020e526c65.tar.gz
src-1440f62266cd056b1520e799c02406020e526c65.zip
Remove unused nhop_ref_any() function.
Remove "opt_mpath.h" header where not needed. No functional changes.
Notes
Notes: svn path=/head/; revision=365930
-rw-r--r--sys/net/route/nhop_ctl.c7
-rw-r--r--sys/net/route/nhop_utils.c1
-rw-r--r--sys/net/route/route_var.h1
-rw-r--r--sys/netinet/in_proto.c1
-rw-r--r--sys/netinet6/in6_proto.c1
-rw-r--r--sys/netinet6/in6_src.c2
6 files changed, 0 insertions, 13 deletions
diff --git a/sys/net/route/nhop_ctl.c b/sys/net/route/nhop_ctl.c
index ae1bc66dad47..b9ac4d63218d 100644
--- a/sys/net/route/nhop_ctl.c
+++ b/sys/net/route/nhop_ctl.c
@@ -691,13 +691,6 @@ nhop_free(struct nhop_object *nh)
&nh_priv->nh_epoch_ctx);
}
-int
-nhop_ref_any(struct nhop_object *nh)
-{
-
- return (nhop_try_ref_object(nh));
-}
-
void
nhop_free_any(struct nhop_object *nh)
{
diff --git a/sys/net/route/nhop_utils.c b/sys/net/route/nhop_utils.c
index c0d432ceaf65..df4fb4db66ca 100644
--- a/sys/net/route/nhop_utils.c
+++ b/sys/net/route/nhop_utils.c
@@ -29,7 +29,6 @@
__FBSDID("$FreeBSD$");
#include "opt_inet.h"
#include "opt_route.h"
-#include "opt_mpath.h"
#include <sys/param.h>
#include <sys/systm.h>
diff --git a/sys/net/route/route_var.h b/sys/net/route/route_var.h
index 7531646d1ad8..1ed4f5e95d61 100644
--- a/sys/net/route/route_var.h
+++ b/sys/net/route/route_var.h
@@ -244,7 +244,6 @@ int nhops_init_rib(struct rib_head *rh);
void nhops_destroy_rib(struct rib_head *rh);
void nhop_ref_object(struct nhop_object *nh);
int nhop_try_ref_object(struct nhop_object *nh);
-int nhop_ref_any(struct nhop_object *nh);
void nhop_free_any(struct nhop_object *nh);
void nhop_set_type(struct nhop_object *nh, enum nhop_type nh_type);
diff --git a/sys/netinet/in_proto.c b/sys/netinet/in_proto.c
index 4133ded92a82..11688e3cb1d2 100644
--- a/sys/netinet/in_proto.c
+++ b/sys/netinet/in_proto.c
@@ -39,7 +39,6 @@ __FBSDID("$FreeBSD$");
#include "opt_inet.h"
#include "opt_inet6.h"
#include "opt_sctp.h"
-#include "opt_mpath.h"
#include <sys/param.h>
#include <sys/systm.h>
diff --git a/sys/netinet6/in6_proto.c b/sys/netinet6/in6_proto.c
index 9f9c9b9dbbf8..21b7d660676f 100644
--- a/sys/netinet6/in6_proto.c
+++ b/sys/netinet6/in6_proto.c
@@ -70,7 +70,6 @@ __FBSDID("$FreeBSD$");
#include "opt_ipsec.h"
#include "opt_ipstealth.h"
#include "opt_sctp.h"
-#include "opt_mpath.h"
#include "opt_route.h"
#include <sys/param.h>
diff --git a/sys/netinet6/in6_src.c b/sys/netinet6/in6_src.c
index 4921f7027218..7a756030f01c 100644
--- a/sys/netinet6/in6_src.c
+++ b/sys/netinet6/in6_src.c
@@ -67,8 +67,6 @@ __FBSDID("$FreeBSD$");
#include "opt_inet.h"
#include "opt_inet6.h"
-#include "opt_mpath.h"
-
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/lock.h>