Skip to contentSkip to conversation

: ppp: Use skb_queue_walk() in ppp_mp_insert().

PATCH New David Miller 1 participant 1 message Oct 9, 2008

Subsystems (2)
lore
Share & tools
lore

David Miller

author maintainer
#0 lore raw

PATCH 1/1 : ppp: Use skb_queue_walk() in ppp_mp_insert().

ppp: Use skb_queue_walk() in ppp_mp_insert().

Instead of open-coded version.

---
 drivers/net/ppp_generic.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
drivers/net/ppp_generic.c +2 -1
index 5d4d215..0ca0fcb 100644
@@ -1863,9 +1863,10 @@ ppp_mp_insert(struct ppp *ppp, struct sk_buff *skb)
 
 	/* N.B. we don't need to lock the list lock because we have the
 	   ppp unit receive-side lock. */
-	for (p = list->next; p != (struct sk_buff *)list; p = p->next)
+	skb_queue_walk(list, p) {
 		if (seq_before(seq, p->sequence))
 			break;
+	}
 	__skb_queue_before(list, p, skb);
 }
 
Signature · 1 line
1.5.6.5