mirror of
https://github.com/FEX-Emu/linux.git
synced 2024-12-15 21:30:43 +00:00
staging: octeon: drop redundant mac address check
Checking if MAC address is valid using is_valid_ether_addr() is already done in of_get_mac_address(). Signed-off-by: Luka Perkov <luka@openwrt.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
923fb2aece
commit
4d97845225
@ -455,7 +455,7 @@ int cvm_oct_common_init(struct net_device *dev)
|
||||
if (priv->of_node)
|
||||
mac = of_get_mac_address(priv->of_node);
|
||||
|
||||
if (mac && is_valid_ether_addr(mac))
|
||||
if (mac)
|
||||
memcpy(dev->dev_addr, mac, ETH_ALEN);
|
||||
else
|
||||
eth_hw_addr_random(dev);
|
||||
|
Loading…
Reference in New Issue
Block a user