mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-12-24 15:14:06 +00:00
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:
parent
16afe566ff
commit
909037c2ca
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user