mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-10-04 05:39:53 +00:00
tcp_out: Fix LWIP_NETIF_TX_SINGLE_PBUF guard for not executing phase 2
This fixes build error if LWIP_NETIF_TX_SINGLE_PBUF==1.
Fixes: dd811bca06
("Fix bug #50694 (TX exist more pbufs after enable LWIP_NETIF_TX_SINGLE_PBUF) by not executing phase 2 for LWIP_NETIF_TX_SINGLE_PBUF==1")
Signed-off-by: Axel Lin <axel.lin@ingics.com>
This commit is contained in:
parent
2f117add7a
commit
471daba011
@ -548,13 +548,13 @@ tcp_write(struct tcp_pcb *pcb, const void *arg, u16_t len, u8_t apiflags)
|
|||||||
|
|
||||||
pos += seglen;
|
pos += seglen;
|
||||||
}
|
}
|
||||||
|
#endif /* !LWIP_NETIF_TX_SINGLE_PBUF */
|
||||||
} else {
|
} else {
|
||||||
#if TCP_OVERSIZE
|
#if TCP_OVERSIZE
|
||||||
LWIP_ASSERT("unsent_oversize mismatch (pcb->unsent is NULL)",
|
LWIP_ASSERT("unsent_oversize mismatch (pcb->unsent is NULL)",
|
||||||
pcb->unsent_oversize == 0);
|
pcb->unsent_oversize == 0);
|
||||||
#endif /* TCP_OVERSIZE */
|
#endif /* TCP_OVERSIZE */
|
||||||
}
|
}
|
||||||
#endif /* !LWIP_NETIF_TX_SINGLE_PBUF */
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Phase 3: Create new segments.
|
* Phase 3: Create new segments.
|
||||||
|
Loading…
Reference in New Issue
Block a user