net: sched : Remove unnecessary cast in kfree
authorXu Wang <vulab@iscas.ac.cn>
Thu, 23 Apr 2020 05:43:13 +0000 (13:43 +0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 23 Apr 2020 22:50:50 +0000 (15:50 -0700)
Remove unnecassary casts in the argument to kfree.

Signed-off-by: Xu Wang <vulab@iscas.ac.cn>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sched/em_ipt.c

index eecfe072c508ec34b76254a54be41c5a25a7e9b2..18755d29fd1594040dfea24387be8b48c8350241 100644 (file)
@@ -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,