diff options
author | Xu Wang <vulab@iscas.ac.cn> | 2020-07-20 06:09:59 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-07-21 02:45:09 +0300 |
commit | 88a3c45482f63373f7cce37a182cd6f40429a5ac (patch) | |
tree | 0f70235b0ebc68cc3b71db766a7b164b7669f59d /drivers/net/ethernet/neterion | |
parent | 120c7dd52213d86ca65a76127b9a69b1cae132d0 (diff) | |
download | linux-88a3c45482f63373f7cce37a182cd6f40429a5ac.tar.xz |
net: vxge-main: Remove unnecessary cast in kfree()
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>
Diffstat (limited to 'drivers/net/ethernet/neterion')
-rw-r--r-- | drivers/net/ethernet/neterion/vxge/vxge-main.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/ethernet/neterion/vxge/vxge-main.c b/drivers/net/ethernet/neterion/vxge/vxge-main.c index b0faa737b817..fc4ed0aa1b2f 100644 --- a/drivers/net/ethernet/neterion/vxge/vxge-main.c +++ b/drivers/net/ethernet/neterion/vxge/vxge-main.c @@ -1076,7 +1076,7 @@ static int vxge_mac_list_del(struct vxge_vpath *vpath, struct macInfo *mac) list_for_each_safe(entry, next, &vpath->mac_addr_list) { if (((struct vxge_mac_addrs *)entry)->macaddr == del_mac) { list_del(entry); - kfree((struct vxge_mac_addrs *)entry); + kfree(entry); vpath->mac_addr_cnt--; if (is_multicast_ether_addr(mac->macaddr)) @@ -2913,7 +2913,7 @@ static void vxge_free_mac_add_list(struct vxge_vpath *vpath) list_for_each_safe(entry, next, &vpath->mac_addr_list) { list_del(entry); - kfree((struct vxge_mac_addrs *)entry); + kfree(entry); } } |