Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ff3074a4 authored by John W. Linville's avatar John W. Linville
Browse files

mac80211: remove unnecessary check in ieee80211_dump_survey



This check is duplicated in drv_get_survey.

Reported-by: default avatarJohannes Berg <johannes@sipsolutions.net>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent 38bdb650
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -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);
}