net/local: remove duplicate assert condition

Signed-off-by: chao.an <anchao@xiaomi.com>
This commit is contained in:
chao.an 2022-02-07 11:44:03 +08:00 committed by Alan Carvalho de Assis
parent 63173dadbb
commit 3d62d5106d

View File

@ -107,8 +107,7 @@ int local_listen(FAR struct socket *psock, int backlog)
{
/* The connection should not reside in any other list */
DEBUGASSERT(server->lc_node.flink == NULL &&
server->lc_node.flink == NULL);
DEBUGASSERT(server->lc_node.flink == NULL);
/* And change the server state to listing */