mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-12-25 09:16:20 +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;
|
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 */
|
||||||
|
Loading…
Reference in New Issue
Block a user