net/local: Remove the check of SOCK_STREAM before local_stream_connect
since psock_local_connect is called only when the socket is SOCK_STREAM Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
parent
039a3eccf4
commit
c7a513b182
@ -287,11 +287,8 @@ int psock_local_connect(FAR struct socket *psock,
|
|||||||
|
|
||||||
/* We have to do more for the SOCK_STREAM family */
|
/* We have to do more for the SOCK_STREAM family */
|
||||||
|
|
||||||
if (conn->lc_proto == SOCK_STREAM)
|
ret = local_stream_connect(client, conn,
|
||||||
{
|
|
||||||
ret = local_stream_connect(client, conn,
|
|
||||||
_SS_ISNONBLOCK(client->lc_conn.s_flags));
|
_SS_ISNONBLOCK(client->lc_conn.s_flags));
|
||||||
}
|
|
||||||
|
|
||||||
net_unlock();
|
net_unlock();
|
||||||
return ret;
|
return ret;
|
||||||
|
Loading…
Reference in New Issue
Block a user