phonet: Use frag list abstraction interfaces.

Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
David S. Miller 2009-06-09 00:21:58 -07:00
parent 343a99724e
commit 5c313e9a77
2 changed files with 4 additions and 4 deletions

View file

@ -115,10 +115,10 @@ static int gprs_recv(struct gprs_dev *gp, struct sk_buff *skb)
rskb->truesize += rskb->len; rskb->truesize += rskb->len;
/* Avoid nested fragments */ /* Avoid nested fragments */
for (fs = skb_shinfo(skb)->frag_list; fs; fs = fs->next) skb_walk_frags(skb, fs)
flen += fs->len; flen += fs->len;
skb->next = skb_shinfo(skb)->frag_list; skb->next = skb_shinfo(skb)->frag_list;
skb_shinfo(skb)->frag_list = NULL; skb_frag_list_init(skb);
skb->len -= flen; skb->len -= flen;
skb->data_len -= flen; skb->data_len -= flen;
skb->truesize -= flen; skb->truesize -= flen;

View file

@ -940,10 +940,10 @@ int pep_write(struct sock *sk, struct sk_buff *skb)
rskb->truesize += rskb->len; rskb->truesize += rskb->len;
/* Avoid nested fragments */ /* Avoid nested fragments */
for (fs = skb_shinfo(skb)->frag_list; fs; fs = fs->next) skb_walk_frags(skb, fs)
flen += fs->len; flen += fs->len;
skb->next = skb_shinfo(skb)->frag_list; skb->next = skb_shinfo(skb)->frag_list;
skb_shinfo(skb)->frag_list = NULL; skb_frag_list_init(skb);
skb->len -= flen; skb->len -= flen;
skb->data_len -= flen; skb->data_len -= flen;
skb->truesize -= flen; skb->truesize -= flen;