ipfrag : frag_kfree_skb() cleanup
[linux-2.6.git] / net / ipv6 / reassembly.c
index a630506151c3123671ed420d6c05f93376aec80a..0b97230a32517b599e26ab2bed4a405ec0f67f99 100644 (file)
@@ -150,11 +150,8 @@ int ip6_frag_match(struct inet_frag_queue *q, void *a)
 EXPORT_SYMBOL(ip6_frag_match);
 
 /* Memory Tracking Functions. */
 EXPORT_SYMBOL(ip6_frag_match);
 
 /* Memory Tracking Functions. */
-static inline void frag_kfree_skb(struct netns_frags *nf,
-               struct sk_buff *skb, int *work)
+static void frag_kfree_skb(struct netns_frags *nf, struct sk_buff *skb)
 {
 {
-       if (work)
-               *work -= skb->truesize;
        atomic_sub(skb->truesize, &nf->mem);
        kfree_skb(skb);
 }
        atomic_sub(skb->truesize, &nf->mem);
        kfree_skb(skb);
 }
@@ -392,7 +389,7 @@ static int ip6_frag_queue(struct frag_queue *fq, struct sk_buff *skb,
                                fq->q.fragments = next;
 
                        fq->q.meat -= free_it->len;
                                fq->q.fragments = next;
 
                        fq->q.meat -= free_it->len;
-                       frag_kfree_skb(fq->q.net, free_it, NULL);
+                       frag_kfree_skb(fq->q.net, free_it);
                }
        }
 
                }
        }