summaryrefslogtreecommitdiffstats
path: root/net/mac80211
diff options
context:
space:
mode:
authorMohammed Shafi Shajakhan <mohammed@qca.qualcomm.com>2011-07-12 11:49:04 +0200
committerJohn W. Linville <linville@tuxdriver.com>2011-07-13 20:49:42 +0200
commit2fcf282471f04f465d0368e46e973e01504292b3 (patch)
treecc1921dba4ce8769396ed5e1581e4a44f382de75 /net/mac80211
parentmwifiex: add cfg80211 handler for set_bitrate_mask (diff)
downloadlinux-2fcf282471f04f465d0368e46e973e01504292b3.tar.xz
linux-2fcf282471f04f465d0368e46e973e01504292b3.zip
mac80211: remove a redundant check
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>
Diffstat (limited to 'net/mac80211')
-rw-r--r--net/mac80211/iface.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/net/mac80211/iface.c b/net/mac80211/iface.c
index 236d15841812..cd5fb40d3fd4 100644
--- a/net/mac80211/iface.c
+++ b/net/mac80211/iface.c
@@ -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);