sockets: Simplify #if !LWIP_TCPIP_CORE_LOCKING guard in select_check_waiters

Signed-off-by: Axel Lin <axel.lin@ingics.com>
This commit is contained in:
Axel Lin 2018-01-03 11:42:35 +08:00 committed by Dirk Ziegelmeier
parent 744e69334d
commit 913a7e0638

View File

@ -2526,9 +2526,7 @@ static void select_check_waiters(int s, int has_recvevent, int has_sendevent, in
#if !LWIP_TCPIP_CORE_LOCKING
int last_select_cb_ctr;
SYS_ARCH_DECL_PROTECT(lev);
#endif
#if !LWIP_TCPIP_CORE_LOCKING
SYS_ARCH_PROTECT(lev);
again:
/* remember the state of select_cb_list to detect changes */