From fe3bb8bb78920c098ddfcff606a7d4fce65f3778 Mon Sep 17 00:00:00 2001 From: Axel Lin Date: Thu, 22 Feb 2018 11:26:42 +0800 Subject: [PATCH] etharp: Remove superfluous assert checking in free_etharp_q The same checking is done while iterating the list in the while loop. Signed-off-by: Axel Lin --- src/core/ipv4/etharp.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/core/ipv4/etharp.c b/src/core/ipv4/etharp.c index 882fd9ee..07c1794a 100644 --- a/src/core/ipv4/etharp.c +++ b/src/core/ipv4/etharp.c @@ -150,7 +150,6 @@ free_etharp_q(struct etharp_q_entry *q) { struct etharp_q_entry *r; LWIP_ASSERT("q != NULL", q != NULL); - LWIP_ASSERT("q->p != NULL", q->p != NULL); while (q) { r = q; q = q->next;