diff options
Diffstat (limited to 'drivers/net/ethernet/octeon/octeon_mgmt.c')
-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) | |||
1545 | 1545 | ||
1546 | mac = of_get_mac_address(pdev->dev.of_node); | 1546 | mac = of_get_mac_address(pdev->dev.of_node); |
1547 | 1547 | ||
1548 | if (mac && is_valid_ether_addr(mac)) | 1548 | if (mac) |
1549 | memcpy(netdev->dev_addr, mac, ETH_ALEN); | 1549 | memcpy(netdev->dev_addr, mac, ETH_ALEN); |
1550 | else | 1550 | else |
1551 | eth_hw_addr_random(netdev); | 1551 | eth_hw_addr_random(netdev); |