net: mvneta: drop redundant mac address check
Subsystems (3)
PATCH 1/1 net: 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]>
--- 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.1
Dear Luka Perkov,
Quoted 4 lines · Luka Perkov
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]>
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com