Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);