diff options
author | David S. Miller <davem@davemloft.net> | 2008-10-09 19:40:29 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-10-09 19:40:29 -0400 |
commit | 13c9821ea49be153ea74e5987cf6955871d7b124 (patch) | |
tree | fcd63c99163a57ea433d150ff68a9d8195ccf15c /drivers/net/ppp_generic.c | |
parent | f24d43c07e208372aa3d3bff419afbf43ba87698 (diff) |
ppp: Use skb_queue_walk() in ppp_mp_insert().
Instead of open-coded version.
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ppp_generic.c')
-rw-r--r-- | drivers/net/ppp_generic.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/ppp_generic.c b/drivers/net/ppp_generic.c index 5d4d21516a6c..0ca0fcbb7c01 100644 --- a/drivers/net/ppp_generic.c +++ b/drivers/net/ppp_generic.c | |||
@@ -1863,9 +1863,10 @@ ppp_mp_insert(struct ppp *ppp, struct sk_buff *skb) | |||
1863 | 1863 | ||
1864 | /* N.B. we don't need to lock the list lock because we have the | 1864 | /* N.B. we don't need to lock the list lock because we have the |
1865 | ppp unit receive-side lock. */ | 1865 | ppp unit receive-side lock. */ |
1866 | for (p = list->next; p != (struct sk_buff *)list; p = p->next) | 1866 | skb_queue_walk(list, p) { |
1867 | if (seq_before(seq, p->sequence)) | 1867 | if (seq_before(seq, p->sequence)) |
1868 | break; | 1868 | break; |
1869 | } | ||
1869 | __skb_queue_before(list, p, skb); | 1870 | __skb_queue_before(list, p, skb); |
1870 | } | 1871 | } |
1871 | 1872 | ||