[NET]: Replace skb_pull/skb_postpull_rcsum with skb_pull_rcsum
[linux-2.6.git] / drivers / net / ppp_generic.c
index 0245e40b51a1f685e317f2ee4858475ea6d7ec14..f608c12e3e8b9f214201260bfe277a072fabcbe8 100644 (file)
@@ -1691,8 +1691,8 @@ ppp_receive_nonmp_frame(struct ppp *ppp, struct sk_buff *skb)
                    || ppp->npmode[npi] != NPMODE_PASS) {
                        kfree_skb(skb);
                } else {
-                       skb_pull(skb, 2);       /* chop off protocol */
-                       skb_postpull_rcsum(skb, skb->data - 2, 2);
+                       /* chop off protocol */
+                       skb_pull_rcsum(skb, 2);
                        skb->dev = ppp->dev;
                        skb->protocol = htons(npindex_to_ethertype[npi]);
                        skb->mac.raw = skb->data;