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

Commit 09ec0d05 authored by Luka Perkov's avatar Luka Perkov Committed by David S. Miller
Browse files

octeon_mgmt: 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>
Acked-by: default avatarDavid Daney <david.daney@cavium.com>
CC: David Miller <davem@davemloft.net>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent c968601d
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1545,7 +1545,7 @@ static int octeon_mgmt_probe(struct platform_device *pdev)

	mac = of_get_mac_address(pdev->dev.of_node);

	if (mac && is_valid_ether_addr(mac))
	if (mac)
		memcpy(netdev->dev_addr, mac, ETH_ALEN);
	else
		eth_hw_addr_random(netdev);