diff options
author | Luka Perkov <luka@openwrt.org> | 2013-10-30 00:09:12 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-10-29 22:52:44 -0400 |
commit | 09ec0d051a66feaeca72a370f0a76da6f266af37 (patch) | |
tree | fdeff89d728741b1557de31b83e179088c4f5bb6 /drivers/net/ethernet | |
parent | c968601d174739cb1e7100c95e0eb3d2f7e91bc9 (diff) |
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: Luka Perkov <luka@openwrt.org>
Acked-by: David Daney <david.daney@cavium.com>
CC: David Miller <davem@davemloft.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet')
-rw-r--r-- | drivers/net/ethernet/octeon/octeon_mgmt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/octeon/octeon_mgmt.c b/drivers/net/ethernet/octeon/octeon_mgmt.c index 622aa75904c4..1b326cbcd34b 100644 --- a/drivers/net/ethernet/octeon/octeon_mgmt.c +++ b/drivers/net/ethernet/octeon/octeon_mgmt.c @@ -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); |