Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 13c9821e authored by David S. Miller's avatar David S. Miller
Browse files

ppp: Use skb_queue_walk() in ppp_mp_insert().



Instead of open-coded version.

Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent f24d43c0
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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);
}