From 471daba011b2cc62cddfc6b14923782f2905fa19 Mon Sep 17 00:00:00 2001 From: Axel Lin Date: Tue, 25 Apr 2017 23:14:07 +0800 Subject: [PATCH] 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: dd811bca0689 ("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 --- src/core/tcp_out.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/tcp_out.c b/src/core/tcp_out.c index 37517005..8791ead7 100644 --- a/src/core/tcp_out.c +++ b/src/core/tcp_out.c @@ -548,13 +548,13 @@ tcp_write(struct tcp_pcb *pcb, const void *arg, u16_t len, u8_t apiflags) pos += seglen; } +#endif /* !LWIP_NETIF_TX_SINGLE_PBUF */ } else { #if TCP_OVERSIZE LWIP_ASSERT("unsent_oversize mismatch (pcb->unsent is NULL)", pcb->unsent_oversize == 0); #endif /* TCP_OVERSIZE */ } -#endif /* !LWIP_NETIF_TX_SINGLE_PBUF */ /* * Phase 3: Create new segments.