net: tcp: Fix macro tcp_slist()

Fix error in macro parameter.

Signed-off-by: Andrei Emeltchenko <andrei.emeltchenko@intel.com>
This commit is contained in:
Andrei Emeltchenko 2021-10-11 13:33:20 +03:00 committed by Anas Nashif
parent 2faae3c027
commit 9d2899657a

View file

@ -22,13 +22,13 @@
#define tcp_slist(_conn, _slist, _op, _type, _link) \
({ \
k_mutex_lock(&conn->lock, K_FOREVER); \
k_mutex_lock(&_conn->lock, K_FOREVER); \
\
sys_snode_t *_node = sys_slist_##_op(_slist); \
\
_type * _x = _node ? CONTAINER_OF(_node, _type, _link) : NULL; \
\
k_mutex_unlock(&conn->lock); \
k_mutex_unlock(&_conn->lock); \
\
_x; \
})