Skip to content

Commit

Permalink
mac80211: remove a redundant check
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Mohammed Shafi Shajakhan authored and John W. Linville committed Jul 13, 2011
1 parent 5d82c53 commit 2fcf282
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions net/mac80211/iface.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 2fcf282

Please sign in to comment.