Commit 0b041f8d authored by Shan Wei's avatar Shan Wei Committed by Patrick McHardy

netfilter: defrag: kill unused work parameter of frag_kfree_skb()

The parameter (work) is unused, remove it.
Reported from Eric Dumazet.
Signed-off-by: default avatarShan Wei <shanwei@cn.fujitsu.com>
Acked-by: default avatarEric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: default avatarPatrick McHardy <kaber@trash.net>
parent 841a5940
...@@ -114,10 +114,8 @@ static void nf_skb_free(struct sk_buff *skb) ...@@ -114,10 +114,8 @@ static void nf_skb_free(struct sk_buff *skb)
} }
/* Memory Tracking Functions. */ /* Memory Tracking Functions. */
static inline void frag_kfree_skb(struct sk_buff *skb, unsigned int *work) static void frag_kfree_skb(struct sk_buff *skb)
{ {
if (work)
*work -= skb->truesize;
atomic_sub(skb->truesize, &nf_init_frags.mem); atomic_sub(skb->truesize, &nf_init_frags.mem);
nf_skb_free(skb); nf_skb_free(skb);
kfree_skb(skb); kfree_skb(skb);
...@@ -335,7 +333,7 @@ static int nf_ct_frag6_queue(struct nf_ct_frag6_queue *fq, struct sk_buff *skb, ...@@ -335,7 +333,7 @@ static int nf_ct_frag6_queue(struct nf_ct_frag6_queue *fq, struct sk_buff *skb,
fq->q.fragments = next; fq->q.fragments = next;
fq->q.meat -= free_it->len; fq->q.meat -= free_it->len;
frag_kfree_skb(free_it, NULL); frag_kfree_skb(free_it);
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment