git: 744a64bd920c - main - in_pcb: garbage collect in_pcbrele()

From: Gleb Smirnoff <glebius_at_FreeBSD.org>
Date: Mon, 18 Oct 2021 17:33:52 UTC
The branch main has been updated by glebius:

URL: https://cgit.FreeBSD.org/src/commit/?id=744a64bd920c79b74a695a53cddfbecee4935c05

commit 744a64bd920c79b74a695a53cddfbecee4935c05
Author:     Gleb Smirnoff <glebius@FreeBSD.org>
AuthorDate: 2021-04-27 22:11:08 +0000
Commit:     Gleb Smirnoff <glebius@FreeBSD.org>
CommitDate: 2021-10-18 17:07:16 +0000

    in_pcb: garbage collect in_pcbrele()
---
 sys/netinet/in_pcb.c | 10 ----------
 sys/netinet/in_pcb.h |  1 -
 2 files changed, 11 deletions(-)

diff --git a/sys/netinet/in_pcb.c b/sys/netinet/in_pcb.c
index fc2914730e43..e267d25c4f69 100644
--- a/sys/netinet/in_pcb.c
+++ b/sys/netinet/in_pcb.c
@@ -1655,16 +1655,6 @@ in_pcbrele_wlocked(struct inpcb *inp)
 	return (1);
 }
 
-/*
- * Temporary wrapper.
- */
-int
-in_pcbrele(struct inpcb *inp)
-{
-
-	return (in_pcbrele_wlocked(inp));
-}
-
 static void
 inpcbport_free(epoch_context_t ctx)
 {
diff --git a/sys/netinet/in_pcb.h b/sys/netinet/in_pcb.h
index 77a99e666663..861c0ba5f0aa 100644
--- a/sys/netinet/in_pcb.h
+++ b/sys/netinet/in_pcb.h
@@ -862,7 +862,6 @@ void	in_pcbnotifyall(struct inpcbinfo *pcbinfo, struct in_addr,
 void	in_pcbref(struct inpcb *);
 void	in_pcbrehash(struct inpcb *);
 void	in_pcbrehash_mbuf(struct inpcb *, struct mbuf *);
-int	in_pcbrele(struct inpcb *);
 int	in_pcbrele_rlocked(struct inpcb *);
 int	in_pcbrele_wlocked(struct inpcb *);
 void	in_losing(struct inpcb *);