mvneta: drop redundant mac address check
authorLuka Perkov <luka@openwrt.org>
Tue, 29 Oct 2013 23:10:01 +0000 (00:10 +0100)
committerDavid S. Miller <davem@davemloft.net>
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 <luka@openwrt.org>
Acked-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
CC: David Miller <davem@davemloft.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/marvell/mvneta.c

index e35bac7cfdf14dc85d2bb55b49a864c29f2ae2c6..7d99e695a1106ff1ab74f00c4edd8363b4b7e2c6 100644 (file)
@@ -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 {