net/tcp: Remove tcp_listen_initialize

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
Xiang Xiao 2022-03-12 12:26:14 +08:00 committed by Petro Karashchenko
parent 716e27cbeb
commit 7028531e74
3 changed files with 0 additions and 39 deletions

View File

@ -137,10 +137,6 @@ void net_initialize(void)
#endif
#ifdef NET_TCP_HAVE_STACK
/* Initialize the listening port structures */
tcp_listen_initialize();
/* Initialize the TCP/IP connection structures */
tcp_initialize();

View File

@ -830,20 +830,6 @@ void tcp_poll(FAR struct net_driver_s *dev, FAR struct tcp_conn_s *conn);
void tcp_timer(FAR struct net_driver_s *dev, FAR struct tcp_conn_s *conn,
int hsec);
/****************************************************************************
* Name: tcp_listen_initialize
*
* Description:
* Setup the listening data structures
*
* Assumptions:
* Called early in the initialization phase while the system is still
* single-threaded.
*
****************************************************************************/
void tcp_listen_initialize(void);
/****************************************************************************
* Name: tcp_findlistener
*

View File

@ -145,27 +145,6 @@ FAR struct tcp_conn_s *tcp_findlistener(FAR union ip_binding_u *uaddr,
* Public Functions
****************************************************************************/
/****************************************************************************
* Name: tcp_listen_initialize
*
* Description:
* Setup the listening data structures
*
* Assumptions:
* Called early in the initialization phase while the system is still
* single-threaded.
*
****************************************************************************/
void tcp_listen_initialize(void)
{
int ndx;
for (ndx = 0; ndx < CONFIG_NET_MAX_LISTENPORTS; ndx++)
{
tcp_listenports[ndx] = NULL;
}
}
/****************************************************************************
* Name: tcp_unlisten
*