You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by pk...@apache.org on 2022/03/12 17:24:29 UTC
[incubator-nuttx] 03/07: net/tcp: Remove tcp_listen_initialize
This is an automated email from the ASF dual-hosted git repository.
pkarashchenko pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git
commit 7028531e74813b6097045bc0910c94115e517c89
Author: Xiang Xiao <xi...@xiaomi.com>
AuthorDate: Sat Mar 12 12:26:14 2022 +0800
net/tcp: Remove tcp_listen_initialize
Signed-off-by: Xiang Xiao <xi...@xiaomi.com>
---
net/net_initialize.c | 4 ----
net/tcp/tcp.h | 14 --------------
net/tcp/tcp_listen.c | 21 ---------------------
3 files changed, 39 deletions(-)
diff --git a/net/net_initialize.c b/net/net_initialize.c
index 185f354..00c87c4 100644
--- a/net/net_initialize.c
+++ b/net/net_initialize.c
@@ -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();
diff --git a/net/tcp/tcp.h b/net/tcp/tcp.h
index d5ec88c..b45e888 100644
--- a/net/tcp/tcp.h
+++ b/net/tcp/tcp.h
@@ -831,20 +831,6 @@ 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
*
* Description:
diff --git a/net/tcp/tcp_listen.c b/net/tcp/tcp_listen.c
index 4eb4c9c..ad43977 100644
--- a/net/tcp/tcp_listen.c
+++ b/net/tcp/tcp_listen.c
@@ -146,27 +146,6 @@ FAR struct tcp_conn_s *tcp_findlistener(FAR union ip_binding_u *uaddr,
****************************************************************************/
/****************************************************************************
- * 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
*
* Description: