mac80211: remove a redundant check
authorMohammed Shafi Shajakhan <mohammed@qca.qualcomm.com>
Tue, 12 Jul 2011 09:49:04 +0000 (15:19 +0530)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 13 Jul 2011 18:49:42 +0000 (14:49 -0400)
is_valid_ether_addr itself checks for is_zero_ether_addr

Signed-off-by: Mohammed Shafi Shajakhan <mohammed@qca.qualcomm.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/mac80211/iface.c

index 236d15841812e86b60c488c4fd45311fb3fca885..cd5fb40d3fd4bbb7579d21e8a37a1e27a1e1ffe4 100644 (file)
@@ -363,8 +363,7 @@ static int ieee80211_open(struct net_device *dev)
        int err;
 
        /* fail early if user set an invalid address */
-       if (!is_zero_ether_addr(dev->dev_addr) &&
-           !is_valid_ether_addr(dev->dev_addr))
+       if (!is_valid_ether_addr(dev->dev_addr))
                return -EADDRNOTAVAIL;
 
        err = ieee80211_check_concurrent_iface(sdata, sdata->vif.type);