From: Xu Wang Date: Thu, 23 Apr 2020 05:43:13 +0000 (+0800) Subject: net: sched : Remove unnecessary cast in kfree X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=3c9143d96852485725d330b9164062d8f2d90a38;p=linux.git net: sched : Remove unnecessary cast in kfree Remove unnecassary casts in the argument to kfree. Signed-off-by: Xu Wang Signed-off-by: David S. Miller --- diff --git a/net/sched/em_ipt.c b/net/sched/em_ipt.c index eecfe072c508e..18755d29fd159 100644 --- a/net/sched/em_ipt.c +++ b/net/sched/em_ipt.c @@ -199,7 +199,7 @@ static void em_ipt_destroy(struct tcf_ematch *em) im->match->destroy(&par); } module_put(im->match->me); - kfree((void *)im); + kfree(im); } static int em_ipt_match(struct sk_buff *skb, struct tcf_ematch *em,