From 716e27cbebadbc93ee7d2c550503768b24a0a838 Mon Sep 17 00:00:00 2001 From: Xiang Xiao Date: Sat, 12 Mar 2022 12:23:22 +0800 Subject: [PATCH] net/local: Remove local_initialize Signed-off-by: Xiang Xiao --- net/local/local.h | 11 ----------- net/local/local_conn.c | 14 -------------- net/net_initialize.c | 7 ------- 3 files changed, 32 deletions(-) diff --git a/net/local/local.h b/net/local/local.h index ef7421722b2..ca9eab2d161 100644 --- a/net/local/local.h +++ b/net/local/local.h @@ -203,17 +203,6 @@ EXTERN const struct sock_intf_s g_local_sockif; struct sockaddr; /* Forward reference */ struct socket; /* Forward reference */ -/**************************************************************************** - * Name: local_initialize - * - * Description: - * Initialize the local, Unix domain connection structures. Called once - * and only from the common network initialization logic. - * - ****************************************************************************/ - -void local_initialize(void); - /**************************************************************************** * Name: local_alloc * diff --git a/net/local/local_conn.c b/net/local/local_conn.c index 72fb1d13dee..302c7cb8481 100644 --- a/net/local/local_conn.c +++ b/net/local/local_conn.c @@ -47,20 +47,6 @@ static dq_queue_t g_local_connections; * Public Functions ****************************************************************************/ -/**************************************************************************** - * Name: local_initialize - * - * Description: - * Initialize the local, Unix domain connection structures. Called once - * and only from the common network initialization logic. - * - ****************************************************************************/ - -void local_initialize(void) -{ - dq_init(&g_local_connections); -} - /**************************************************************************** * Name: local_nextconn * diff --git a/net/net_initialize.c b/net/net_initialize.c index fa1a3be360e..185f354ba5d 100644 --- a/net/net_initialize.c +++ b/net/net_initialize.c @@ -41,7 +41,6 @@ #include "pkt/pkt.h" #include "bluetooth/bluetooth.h" #include "ieee802154/ieee802154.h" -#include "local/local.h" #include "can/can.h" #include "netlink/netlink.h" #include "igmp/igmp.h" @@ -125,12 +124,6 @@ void net_initialize(void) ieee802154_initialize(); #endif -#ifdef CONFIG_NET_LOCAL - /* Initialize the local, "Unix domain" socket support */ - - local_initialize(); -#endif - #ifdef CONFIG_NET_CAN /* Initialize SocketCAN support */