From 913a7e06383fa87d9fe34bbb068b09a0fc15b3ef Mon Sep 17 00:00:00 2001 From: Axel Lin Date: Wed, 3 Jan 2018 11:42:35 +0800 Subject: [PATCH] sockets: Simplify #if !LWIP_TCPIP_CORE_LOCKING guard in select_check_waiters Signed-off-by: Axel Lin --- src/api/sockets.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/api/sockets.c b/src/api/sockets.c index 81053b0a..b1bf606f 100644 --- a/src/api/sockets.c +++ b/src/api/sockets.c @@ -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 */