summaryrefslogtreecommitdiff
path: root/drivers/net/ethernet/neterion/vxge/vxge-config.c
diff options
context:
space:
mode:
authorXu Wang <vulab@iscas.ac.cn>2020-10-23 11:55:33 +0300
committerJakub Kicinski <kuba@kernel.org>2020-10-28 02:07:42 +0300
commitb6bf4776d9e2ed4b2552d1c252fff8de3786309a (patch)
treea1b26f0f8dedaf834d1967ce503aa6b95fb5c629 /drivers/net/ethernet/neterion/vxge/vxge-config.c
parent3cb12d27ff655e57e8efe3486dca2a22f4e30578 (diff)
downloadlinux-b6bf4776d9e2ed4b2552d1c252fff8de3786309a.tar.xz
vxge: remove unnecessary cast in kfree()
Remove unnecessary cast in the argument to kfree. Signed-off-by: Xu Wang <vulab@iscas.ac.cn> Link: https://lore.kernel.org/r/20201023085533.4792-1-vulab@iscas.ac.cn Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'drivers/net/ethernet/neterion/vxge/vxge-config.c')
-rw-r--r--drivers/net/ethernet/neterion/vxge/vxge-config.c2
1 files changed, 1 insertions, 1 deletions
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;