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 <axel.lin@ingics.com>
This commit is contained in:
Axel Lin 2018-03-11 16:47:14 +08:00
parent 16afe566ff
commit 909037c2ca

View File

@ -638,12 +638,10 @@ netconn_recv_data_tcp(struct netconn *conn, struct pbuf **new_buf, u8_t apiflags
{ {
err_t err; err_t err;
struct pbuf *buf; struct pbuf *buf;
#if LWIP_TCP
API_MSG_VAR_DECLARE(msg); API_MSG_VAR_DECLARE(msg);
#if LWIP_MPU_COMPATIBLE #if LWIP_MPU_COMPATIBLE
msg = NULL; msg = NULL;
#endif #endif
#endif /* LWIP_TCP */
if (!sys_mbox_valid(&conn->recvmbox)) { if (!sys_mbox_valid(&conn->recvmbox)) {
/* This only happens when calling this function more than once *after* receiving FIN */ /* This only happens when calling this function more than once *after* receiving FIN */