Skip to content

Commit

Permalink
mac80211: remove unnecessary check in ieee80211_dump_survey
Browse files Browse the repository at this point in the history
This check is duplicated in drv_get_survey.

Reported-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
  • Loading branch information
John W. Linville committed Jun 29, 2010
1 parent 38bdb65 commit ff3074a
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions net/mac80211/cfg.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit ff3074a

Please sign in to comment.