From b6a816f11688185119a1abda2ee08300729cffb9 Mon Sep 17 00:00:00 2001 From: Gleb Smirnoff Date: Wed, 19 Oct 2022 15:15:53 -0700 Subject: [PATCH] inpcb: garbage collect so_sototcpcb() It had very little use and required inpcb layer to know tcpcb. --- sys/netinet/in_pcb.c | 7 ------- sys/sys/socket.h | 1 - 2 files changed, 8 deletions(-) diff --git a/sys/netinet/in_pcb.c b/sys/netinet/in_pcb.c index 25c8d70843d5..10e36760825b 100644 --- a/sys/netinet/in_pcb.c +++ b/sys/netinet/in_pcb.c @@ -2753,13 +2753,6 @@ so_sotoinpcb(struct socket *so) return (sotoinpcb(so)); } -struct tcpcb * -so_sototcpcb(struct socket *so) -{ - - return (sototcpcb(so)); -} - /* * Create an external-format (``xinpcb'') structure using the information in * the kernel-format in_pcb structure pointed to by inp. This is done to diff --git a/sys/sys/socket.h b/sys/sys/socket.h index f81aba8f972d..502adac0f155 100644 --- a/sys/sys/socket.h +++ b/sys/sys/socket.h @@ -722,7 +722,6 @@ __END_DECLS #ifdef _KERNEL struct socket; -struct tcpcb *so_sototcpcb(struct socket *so); struct inpcb *so_sotoinpcb(struct socket *so); struct sockbuf *so_sockbuf_snd(struct socket *); struct sockbuf *so_sockbuf_rcv(struct socket *);