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:
09ec0d0
)
mvneta: drop redundant mac address check
author
Luka Perkov
<
[email protected]
>
Tue, 29 Oct 2013 23:10:01 +0000
(
00:10
+0100)
committer
David S. Miller
<
[email protected]
>
Wed, 30 Oct 2013 02:52:44 +0000
(22:52 -0400)
Checking if MAC address is valid using is_valid_ether_addr() is already done in
of_get_mac_address().
Signed-off-by: Luka Perkov <
[email protected]
>
Acked-by: Thomas Petazzoni <
[email protected]
>
CC: David Miller <
[email protected]
>
Signed-off-by: David S. Miller <
[email protected]
>
drivers/net/ethernet/marvell/mvneta.c
patch
|
blob
|
history
diff --git
a/drivers/net/ethernet/marvell/mvneta.c
b/drivers/net/ethernet/marvell/mvneta.c
index e35bac7cfdf14dc85d2bb55b49a864c29f2ae2c6..7d99e695a1106ff1ab74f00c4edd8363b4b7e2c6 100644
(file)
--- a/
drivers/net/ethernet/marvell/mvneta.c
+++ b/
drivers/net/ethernet/marvell/mvneta.c
@@
-2811,7
+2811,7
@@
static int mvneta_probe(struct platform_device *pdev)
}
dt_mac_addr = of_get_mac_address(dn);
- if (dt_mac_addr
&& is_valid_ether_addr(dt_mac_addr)
) {
+ if (dt_mac_addr) {
mac_from = "device tree";
memcpy(dev->dev_addr, dt_mac_addr, ETH_ALEN);
} else {