Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 19 Oct 2022 22:18:41 GMT
From:      Gleb Smirnoff <glebius@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: b6a816f11688 - main - inpcb: garbage collect so_sototcpcb()
Message-ID:  <202210192218.29JMIf0w035811@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by glebius:

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

commit b6a816f11688185119a1abda2ee08300729cffb9
Author:     Gleb Smirnoff <glebius@FreeBSD.org>
AuthorDate: 2022-10-19 22:15:53 +0000
Commit:     Gleb Smirnoff <glebius@FreeBSD.org>
CommitDate: 2022-10-19 22:15:53 +0000

    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 *);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202210192218.29JMIf0w035811>