mvneta: drop redundant mac address check
Subsystems (3)
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().
Signed-off-by Luka Perkov <[email protected]>
Acked-by Thomas Petazzoni <[email protected]>
CC David Miller <[email protected]>
---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
@@ -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
From: Luka Perkov <[email protected]>
Date: Wed, 30 Oct 2013 00:10:01 +0100
Quoted 5 lines
Checking if MAC address is valid using
is_valid_ether_addr()is already done inof_get_mac_address().Signed-off-by Luka Perkov <[email protected]>Acked-by Thomas Petazzoni <[email protected]>
Applied.