if_ovpn: fix LINT-NOIP build

Reported by:	mjg
Sponsored by:	Rubicon Communications, LLC ("Netgate")
This commit is contained in:
Kristof Provost 2022-12-14 10:53:03 +01:00
parent 654e8d84ec
commit 1596d28026

View File

@ -1715,7 +1715,6 @@ ovpn_get_af(struct mbuf *m)
return (0);
}
#ifdef INET
static struct ovpn_kpeer *
ovpn_find_peer_by_ip(struct ovpn_softc *sc, const struct in_addr addr)
{
@ -1727,9 +1726,7 @@ ovpn_find_peer_by_ip(struct ovpn_softc *sc, const struct in_addr addr)
return (RB_FIND(ovpn_kpeers_by_ip, &sc->peers_by_ip, &peer));
}
#endif
#ifdef INET6
static struct ovpn_kpeer *
ovpn_find_peer_by_ip6(struct ovpn_softc *sc, const struct in6_addr *addr)
{
@ -1741,7 +1738,6 @@ ovpn_find_peer_by_ip6(struct ovpn_softc *sc, const struct in6_addr *addr)
return (RB_FIND(ovpn_kpeers_by_ip6, &sc->peers_by_ip6, &peer));
}
#endif
static struct ovpn_kpeer *
ovpn_route_peer(struct ovpn_softc *sc, struct mbuf **m0,