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:
Xiang Xiao 2024-02-28 13:21:41 +08:00 committed by Alan Carvalho de Assis
parent 039a3eccf4
commit c7a513b182

View File

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