tcp_out: Fix trivial build error

Fixes: 6ac21515ca ("Add missing null checks")
Signed-off-by: Axel Lin <axel.lin@ingics.com>
This commit is contained in:
Axel Lin 2018-06-14 22:47:28 +08:00
parent 6ac21515ca
commit a51c92b617

View File

@ -1822,8 +1822,6 @@ tcp_output_alloc_header_common(u32_t ackno, u16_t optlen, u16_t datalen,
struct tcp_hdr *tcphdr; struct tcp_hdr *tcphdr;
struct pbuf *p; struct pbuf *p;
LWIP_ASSERT("tcp_output_alloc_header: invalid pcb", pcb != NULL);
p = pbuf_alloc(PBUF_IP, TCP_HLEN + optlen + datalen, PBUF_RAM); p = pbuf_alloc(PBUF_IP, TCP_HLEN + optlen + datalen, PBUF_RAM);
if (p != NULL) { if (p != NULL) {
LWIP_ASSERT("check that first pbuf can hold struct tcp_hdr", LWIP_ASSERT("check that first pbuf can hold struct tcp_hdr",