diff --git a/src/core/netif.c b/src/core/netif.c index 428b1484..64446546 100644 --- a/src/core/netif.c +++ b/src/core/netif.c @@ -849,7 +849,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) {