mirror of
https://git.savannah.nongnu.org/git/lwip.git
synced 2025-08-07 15:04:39 +08: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: 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 <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…
x
Reference in New Issue
Block a user