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:
parent
2faae3c027
commit
9d2899657a
|
@ -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; \
|
||||
})
|
||||
|
|
Loading…
Reference in a new issue