ethernet: Use eth_random_addr
Convert the existing uses of random_ether_addr to the new eth_random_addr. Signed-off-by: Joe Perches <joe@perches.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
0a4dd59498
commit
7efd26d0db
@@ -645,7 +645,7 @@ ltq_etop_init(struct net_device *dev)
|
||||
memcpy(&mac, &priv->pldata->mac, sizeof(struct sockaddr));
|
||||
if (!is_valid_ether_addr(mac.sa_data)) {
|
||||
pr_warn("etop: invalid MAC, using random\n");
|
||||
random_ether_addr(mac.sa_data);
|
||||
eth_random_addr(mac.sa_data);
|
||||
random_mac = true;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user