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 <axel.lin@ingics.com>
This commit is contained in:
Axel Lin 2018-02-22 11:26:42 +08:00
parent e93cecf527
commit fe3bb8bb78

View File

@ -150,7 +150,6 @@ free_etharp_q(struct etharp_q_entry *q)
{ {
struct etharp_q_entry *r; struct etharp_q_entry *r;
LWIP_ASSERT("q != NULL", q != NULL); LWIP_ASSERT("q != NULL", q != NULL);
LWIP_ASSERT("q->p != NULL", q->p != NULL);
while (q) { while (q) {
r = q; r = q;
q = q->next; q = q->next;