Skip to contentSkip to conversation

octeon_mgmt: drop redundant mac address check

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

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

PATCH v2 1/1 octeon_mgmt: 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/octeon/octeon_mgmt.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/ethernet/octeon/octeon_mgmt.c +1 -1
index 622aa75..1b326cbc 100644
@@ -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);
Signature · 1 line
1.8.4.2