diff --git a/src/core/netif.c b/src/core/netif.c index 51044470..381690bb 100644 --- a/src/core/netif.c +++ b/src/core/netif.c @@ -931,7 +931,9 @@ netif_loop_output(struct netif *netif, struct pbuf *p) netif_poll(). */ /* let last point to the last pbuf in chain r */ - for (last = r; last->next != NULL; last = last->next); + for (last = r; last->next != NULL; last = last->next) { + /* nothing to do here, just get to the last pbuf */ + } SYS_ARCH_PROTECT(lev); if (netif->loop_first != NULL) {