From 744a64bd920c79b74a695a53cddfbecee4935c05 Mon Sep 17 00:00:00 2001 From: Gleb Smirnoff Date: Tue, 27 Apr 2021 15:11:08 -0700 Subject: [PATCH] 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 fc2914730e4..e267d25c4f6 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 77a99e66666..861c0ba5f0a 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 *);