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
@@ -2927,7 +2927,7 @@ static int cpsw_probe_dual_emac(struct cpsw_priv *priv)
|
||||
dev_info(cpsw->dev, "cpsw: Detected MACID = %pM\n",
|
||||
priv_sl2->mac_addr);
|
||||
} else {
|
||||
random_ether_addr(priv_sl2->mac_addr);
|
||||
eth_random_addr(priv_sl2->mac_addr);
|
||||
dev_info(cpsw->dev, "cpsw: Random MACID = %pM\n",
|
||||
priv_sl2->mac_addr);
|
||||
}
|
||||
|
@@ -2052,7 +2052,7 @@ static int netcp_create_interface(struct netcp_device *netcp_device,
|
||||
if (is_valid_ether_addr(efuse_mac_addr))
|
||||
ether_addr_copy(ndev->dev_addr, efuse_mac_addr);
|
||||
else
|
||||
random_ether_addr(ndev->dev_addr);
|
||||
eth_random_addr(ndev->dev_addr);
|
||||
|
||||
devm_iounmap(dev, efuse);
|
||||
devm_release_mem_region(dev, res.start, size);
|
||||
@@ -2061,7 +2061,7 @@ static int netcp_create_interface(struct netcp_device *netcp_device,
|
||||
if (mac_addr)
|
||||
ether_addr_copy(ndev->dev_addr, mac_addr);
|
||||
else
|
||||
random_ether_addr(ndev->dev_addr);
|
||||
eth_random_addr(ndev->dev_addr);
|
||||
}
|
||||
|
||||
ret = of_property_read_string(node_interface, "rx-channel",
|
||||
|
Reference in New Issue
Block a user