diff mbox series

net: sched : Remove unnecessary cast in kfree

Message ID 20200423054313.10535-1-vulab@iscas.ac.cn
State Accepted
Delegated to: David Miller
Headers show
Series net: sched : Remove unnecessary cast in kfree | expand

Commit Message

Xu Wang April 23, 2020, 5:43 a.m. UTC
Remove unnecassary casts in the argument to kfree.

Signed-off-by: Xu Wang <vulab@iscas.ac.cn>
---
 net/sched/em_ipt.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

David Miller April 23, 2020, 10:51 p.m. UTC | #1
From: Xu Wang <vulab@iscas.ac.cn>
Date: Thu, 23 Apr 2020 13:43:13 +0800

> Remove unnecassary casts in the argument to kfree.
> 
> Signed-off-by: Xu Wang <vulab@iscas.ac.cn>

Applied to net-next, thanks.
diff mbox series

Patch

diff --git a/net/sched/em_ipt.c b/net/sched/em_ipt.c
index eecfe072c508..18755d29fd15 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,