projects
/
firefly-linux-kernel-4.4.55.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
octeon_mgmt: drop redundant mac address check
[firefly-linux-kernel-4.4.55.git]
/
drivers
/
net
/
ethernet
/
octeon
/
octeon_mgmt.c
diff --git
a/drivers/net/ethernet/octeon/octeon_mgmt.c
b/drivers/net/ethernet/octeon/octeon_mgmt.c
index 622aa75904c4ee07c1b666466925e08ce0df25d3..1b326cbcd34b1bb9334635ff832b2cfd560ea905 100644
(file)
--- 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);