[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20201023085533.4792-1-vulab@iscas.ac.cn>
Date: Fri, 23 Oct 2020 16:55:33 +0800
From: Xu Wang <vulab@...as.ac.cn>
To: jdmason@...zu.us, davem@...emloft.net, kuba@...nel.org,
jesse.brandeburg@...el.com, christophe.jaillet@...adoo.fr,
gustavoars@...nel.org, bigeasy@...utronix.de
Cc: netdev@...r.kernel.org, linux-kernel@...r.kernel.org,
Xu Wang <vulab@...as.ac.cn>
Subject: [PATCH] vxge: remove unnecessary cast in kfree()
Remove unnecessary cast in the argument to kfree.
Signed-off-by: Xu Wang <vulab@...as.ac.cn>
---
drivers/net/ethernet/neterion/vxge/vxge-config.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/ethernet/neterion/vxge/vxge-config.c b/drivers/net/ethernet/neterion/vxge/vxge-config.c
index f5d48d7c4ce2..da48dd85770c 100644
--- a/drivers/net/ethernet/neterion/vxge/vxge-config.c
+++ b/drivers/net/ethernet/neterion/vxge/vxge-config.c
@@ -1121,7 +1121,7 @@ static void __vxge_hw_blockpool_destroy(struct __vxge_hw_blockpool *blockpool)
list_for_each_safe(p, n, &blockpool->free_entry_list) {
list_del(&((struct __vxge_hw_blockpool_entry *)p)->item);
- kfree((void *)p);
+ kfree(p);
}
return;
--
2.17.1
Powered by blists - more mailing lists