From a51c92b61786e2202b2932c7cc3ddf60922b99f1 Mon Sep 17 00:00:00 2001 From: Axel Lin Date: Thu, 14 Jun 2018 22:47:28 +0800 Subject: [PATCH] tcp_out: Fix trivial build error Fixes: 6ac21515ca31 ("Add missing null checks") Signed-off-by: Axel Lin --- src/core/tcp_out.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/core/tcp_out.c b/src/core/tcp_out.c index fde928c2..f821892f 100644 --- a/src/core/tcp_out.c +++ b/src/core/tcp_out.c @@ -1822,8 +1822,6 @@ tcp_output_alloc_header_common(u32_t ackno, u16_t optlen, u16_t datalen, struct tcp_hdr *tcphdr; struct pbuf *p; - LWIP_ASSERT("tcp_output_alloc_header: invalid pcb", pcb != NULL); - p = pbuf_alloc(PBUF_IP, TCP_HLEN + optlen + datalen, PBUF_RAM); if (p != NULL) { LWIP_ASSERT("check that first pbuf can hold struct tcp_hdr",