Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Xu Wang and committed by
David S. Miller
88a3c454 120c7dd5

+2 -2
+2 -2
drivers/net/ethernet/neterion/vxge/vxge-main.c
··· 1076 1076 list_for_each_safe(entry, next, &vpath->mac_addr_list) { 1077 1077 if (((struct vxge_mac_addrs *)entry)->macaddr == del_mac) { 1078 1078 list_del(entry); 1079 - kfree((struct vxge_mac_addrs *)entry); 1079 + kfree(entry); 1080 1080 vpath->mac_addr_cnt--; 1081 1081 1082 1082 if (is_multicast_ether_addr(mac->macaddr)) ··· 2913 2913 2914 2914 list_for_each_safe(entry, next, &vpath->mac_addr_list) { 2915 2915 list_del(entry); 2916 - kfree((struct vxge_mac_addrs *)entry); 2916 + kfree(entry); 2917 2917 } 2918 2918 } 2919 2919