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 8aba66e..bd6ca71 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);