Skip to contentSkip to conversation

mvneta: drop redundant mac address check

PATCH Applied Luka Perkov 2 participants 2 messages Oct 29, 2013 – Oct 30, 2013

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 mvneta: drop redundant mac address check

Checking if MAC address is valid using is_valid_ether_addr() is already done in of_get_mac_address().

---
v1->v2:

* cosmetic commit message fix based on comment from David Miller

---
 drivers/net/ethernet/marvell/mvneta.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/ethernet/marvell/mvneta.c +1 -1
index e35bac7..7d99e695 100644
@@ -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 {
Signature · 1 line
1.8.4.2