staging: octeon: drop redundant mac address check
authorLuka Perkov <luka@openwrt.org>
Tue, 29 Oct 2013 01:24:34 +0000 (02:24 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 29 Oct 2013 16:05:21 +0000 (09:05 -0700)
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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/octeon/ethernet.c

index 8aba66e4a3e412639415f9f77e6ea13a52a38a44..bd6ca7164049919288737d569659f0c32c605cb8 100644 (file)
@@ -455,7 +455,7 @@ int cvm_oct_common_init(struct net_device *dev)
        if (priv->of_node)
                mac = of_get_mac_address(priv->of_node);
 
-       if (mac && is_valid_ether_addr(mac))
+       if (mac)
                memcpy(dev->dev_addr, mac, ETH_ALEN);
        else
                eth_hw_addr_random(dev);