net/local: Remove local_initialize

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
Xiang Xiao 2022-03-12 12:23:22 +08:00 committed by Petro Karashchenko
parent 9c1fc8da4e
commit 716e27cbeb
3 changed files with 0 additions and 32 deletions

View File

@ -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
*

View File

@ -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
*

View File

@ -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 */