net/local: Remove the unused lc_psock from local_conn_s
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
parent
7ccdd29f3e
commit
86039057f8
@ -143,7 +143,6 @@ struct local_conn_s
|
|||||||
/* SOCK_STREAM fields common to both client and server */
|
/* SOCK_STREAM fields common to both client and server */
|
||||||
|
|
||||||
sem_t lc_waitsem; /* Use to wait for a connection to be accepted */
|
sem_t lc_waitsem; /* Use to wait for a connection to be accepted */
|
||||||
FAR struct socket *lc_psock; /* A reference to the socket structure */
|
|
||||||
|
|
||||||
/* The following is a list if poll structures of threads waiting for
|
/* The following is a list if poll structures of threads waiting for
|
||||||
* socket events.
|
* socket events.
|
||||||
|
@ -150,8 +150,6 @@ int local_accept(FAR struct socket *psock, FAR struct sockaddr *addr,
|
|||||||
|
|
||||||
/* Setup the accpet socket structure */
|
/* Setup the accpet socket structure */
|
||||||
|
|
||||||
conn->lc_psock = newsock;
|
|
||||||
|
|
||||||
newsock->s_domain = psock->s_domain;
|
newsock->s_domain = psock->s_domain;
|
||||||
newsock->s_type = SOCK_STREAM;
|
newsock->s_type = SOCK_STREAM;
|
||||||
newsock->s_sockif = psock->s_sockif;
|
newsock->s_sockif = psock->s_sockif;
|
||||||
|
@ -148,9 +148,6 @@ static int local_sockif_alloc(FAR struct socket *psock)
|
|||||||
/* Save the pre-allocated connection in the socket structure */
|
/* Save the pre-allocated connection in the socket structure */
|
||||||
|
|
||||||
psock->s_conn = conn;
|
psock->s_conn = conn;
|
||||||
#if defined(CONFIG_NET_LOCAL_STREAM)
|
|
||||||
conn->lc_psock = psock;
|
|
||||||
#endif
|
|
||||||
return OK;
|
return OK;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user