mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-25 13:14:07 +08:00
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>
This commit is contained in:
parent
5d82c53a38
commit
2fcf282471
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user