projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
923fb2a
)
staging: octeon: drop redundant mac address check
author
Luka Perkov
<luka@openwrt.org>
Tue, 29 Oct 2013 01:24:34 +0000
(
02:24
+0100)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Tue, 29 Oct 2013 16:05:21 +0000
(09:05 -0700)
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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/octeon/ethernet.c
patch
|
blob
|
history
diff --git
a/drivers/staging/octeon/ethernet.c
b/drivers/staging/octeon/ethernet.c
index 8aba66e4a3e412639415f9f77e6ea13a52a38a44..bd6ca7164049919288737d569659f0c32c605cb8 100644
(file)
--- a/
drivers/staging/octeon/ethernet.c
+++ b/
drivers/staging/octeon/ethernet.c
@@
-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);