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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user