Commit 4d978452 authored by Luka Perkov's avatar Luka Perkov Committed by Greg Kroah-Hartman

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: default avatarLuka Perkov <luka@openwrt.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 923fb2ae
...@@ -455,7 +455,7 @@ int cvm_oct_common_init(struct net_device *dev) ...@@ -455,7 +455,7 @@ int cvm_oct_common_init(struct net_device *dev)
if (priv->of_node) if (priv->of_node)
mac = of_get_mac_address(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); memcpy(dev->dev_addr, mac, ETH_ALEN);
else else
eth_hw_addr_random(dev); eth_hw_addr_random(dev);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment