Blob Blame History Raw
From: Xu Wang <vulab@iscas.ac.cn>
Date: Thu, 23 Apr 2020 13:43:13 +0800
Subject: net: sched : Remove unnecessary cast in kfree
Patch-mainline: v5.8-rc1
Git-commit: 3c9143d96852485725d330b9164062d8f2d90a38
References: bsc#1176447

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>
Acked-by: Thomas Bogendoerfer <tbogendoerfer@suse.de>
---
 net/sched/em_ipt.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- a/net/sched/em_ipt.c
+++ b/net/sched/em_ipt.c
@@ -199,7 +199,7 @@ static void em_ipt_destroy(struct tcf_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,