forked from Minki/linux
mac80211: remove unnecessary check in ieee80211_dump_survey
This check is duplicated in drv_get_survey. Reported-by: Johannes Berg <johannes@sipsolutions.net> Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:
parent
38bdb650f9
commit
ff3074a4dd
@ -413,9 +413,6 @@ static int ieee80211_dump_survey(struct wiphy *wiphy, struct net_device *dev,
|
||||
{
|
||||
struct ieee80211_local *local = wdev_priv(dev->ieee80211_ptr);
|
||||
|
||||
if (!local->ops->get_survey)
|
||||
return -EOPNOTSUPP;
|
||||
|
||||
return drv_get_survey(local, idx, survey);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user