net: drivers/net: Convert random_ether_addr to eth_random_addr
random_ether_addr is a #define for eth_random_addr which is generally preferred in kernel code by ~3:1 Convert the uses of random_ether_addr to enable removing the #define Miscellanea: o Convert &vfmac[0] to equivalent vfmac and avoid unnecessary line wrap Signed-off-by: Joe Perches <joe@perches.com> Acked-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
d55207e37a
commit
6c1f0a1ffb
@@ -11978,7 +11978,7 @@ static int i40e_config_netdev(struct i40e_vsi *vsi)
|
||||
snprintf(netdev->name, IFNAMSIZ, "%.*sv%%d",
|
||||
IFNAMSIZ - 4,
|
||||
pf->vsi[pf->lan_vsi]->netdev->name);
|
||||
random_ether_addr(mac_addr);
|
||||
eth_random_addr(mac_addr);
|
||||
|
||||
spin_lock_bh(&vsi->mac_filter_hash_lock);
|
||||
i40e_add_mac_filter(vsi, mac_addr);
|
||||
|
Reference in New Issue
Block a user