From 909037c2ca322ba32d1f7346ee304a74e7a51f68 Mon Sep 17 00:00:00 2001 From: Axel Lin Date: Sun, 11 Mar 2018 16:47:14 +0800 Subject: [PATCH] api_lib: Remove superfluous #if LWIP_TCP in netconn_recv_data_tcp netconn_recv_data_tcp() will be built only when LWIP_TCP=1. Signed-off-by: Axel Lin --- src/api/api_lib.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/api/api_lib.c b/src/api/api_lib.c index 2af80014..df19ba09 100644 --- a/src/api/api_lib.c +++ b/src/api/api_lib.c @@ -638,12 +638,10 @@ netconn_recv_data_tcp(struct netconn *conn, struct pbuf **new_buf, u8_t apiflags { err_t err; struct pbuf *buf; -#if LWIP_TCP API_MSG_VAR_DECLARE(msg); #if LWIP_MPU_COMPATIBLE msg = NULL; #endif -#endif /* LWIP_TCP */ if (!sys_mbox_valid(&conn->recvmbox)) { /* This only happens when calling this function more than once *after* receiving FIN */