Skip to content

Commit

Permalink
net: vxge-main: Remove unnecessary cast in kfree()
Browse files Browse the repository at this point in the history
Remove unnecassary casts in the argument to kfree.

Signed-off-by: Xu Wang <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
ISCAS-Vulab authored and davem330 committed Jul 20, 2020
1 parent 120c7dd commit 88a3c45
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/net/ethernet/neterion/vxge/vxge-main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down Expand Up @@ -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);
}
}

Expand Down

0 comments on commit 88a3c45

Please sign in to comment.