From: Luka Perkov Date: Tue, 29 Oct 2013 01:24:34 +0000 (+0100) Subject: staging: octeon: drop redundant mac address check X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=4d9784522588302dccb7088c0d7dc541719e6d07;p=linux-beck.git staging: octeon: 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 Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/octeon/ethernet.c b/drivers/staging/octeon/ethernet.c index 8aba66e4a3e4..bd6ca7164049 100644 --- a/drivers/staging/octeon/ethernet.c +++ b/drivers/staging/octeon/ethernet.c @@ -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);