Skip to content

Commit 0b041f8

Browse files
Shan Weikaber
authored andcommitted
netfilter: defrag: kill unused work parameter of frag_kfree_skb()
The parameter (work) is unused, remove it. Reported from Eric Dumazet. Signed-off-by: Shan Wei <shanwei@cn.fujitsu.com> Acked-by: Eric Dumazet <eric.dumazet@gmail.com> Signed-off-by: Patrick McHardy <kaber@trash.net>
1 parent 841a594 commit 0b041f8

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

net/ipv6/netfilter/nf_conntrack_reasm.c

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -114,10 +114,8 @@ static void nf_skb_free(struct sk_buff *skb)
114114
}
115115

116116
/* Memory Tracking Functions. */
117-
static inline void frag_kfree_skb(struct sk_buff *skb, unsigned int *work)
117+
static void frag_kfree_skb(struct sk_buff *skb)
118118
{
119-
if (work)
120-
*work -= skb->truesize;
121119
atomic_sub(skb->truesize, &nf_init_frags.mem);
122120
nf_skb_free(skb);
123121
kfree_skb(skb);
@@ -335,7 +333,7 @@ static int nf_ct_frag6_queue(struct nf_ct_frag6_queue *fq, struct sk_buff *skb,
335333
fq->q.fragments = next;
336334

337335
fq->q.meat -= free_it->len;
338-
frag_kfree_skb(free_it, NULL);
336+
frag_kfree_skb(free_it);
339337
}
340338
}
341339

0 commit comments

Comments
 (0)