mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
ipfrag : frag_kfree_skb() cleanup
Third param (work) is unused, remove it. Remove __inline__ and inline qualifiers. Signed-off-by: Eric Dumazet <[email protected]> Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
parent
d27f9b3582
commit
a95d8c88be
2 changed files with 5 additions and 11 deletions
|
|
@ -150,11 +150,8 @@ int ip6_frag_match(struct inet_frag_queue *q, void *a)
|
|||
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);
|
||||
}
|
||||
|
|
@ -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;
|
||||
frag_kfree_skb(fq->q.net, free_it, NULL);
|
||||
frag_kfree_skb(fq->q.net, free_it);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue