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:
Axel Lin 2017-04-25 23:14:07 +08:00 committed by goldsimon
parent 2f117add7a
commit 471daba011

View File

@ -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.