Commit 2fcf2824 authored by Mohammed Shafi Shajakhan's avatar Mohammed Shafi Shajakhan Committed by John W. Linville
Browse files

mac80211: remove a redundant check

is_valid_ether_addr itself checks for is_zero_ether_addr
Signed-off-by: default avatarMohammed Shafi Shajakhan <>
Signed-off-by: default avatarJohn W. Linville <>
parent 5d82c53a
...@@ -363,8 +363,7 @@ static int ieee80211_open(struct net_device *dev) ...@@ -363,8 +363,7 @@ static int ieee80211_open(struct net_device *dev)
int err; int err;
/* fail early if user set an invalid address */ /* fail early if user set an invalid address */
if (!is_zero_ether_addr(dev->dev_addr) && if (!is_valid_ether_addr(dev->dev_addr))
err = ieee80211_check_concurrent_iface(sdata, sdata->vif.type); err = ieee80211_check_concurrent_iface(sdata, sdata->vif.type);
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment