summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn W. Linville <linville@tuxdriver.com>2010-06-29 13:55:04 -0400
committerJohn W. Linville <linville@tuxdriver.com>2010-06-29 13:55:04 -0400
commitff3074a4dd6c0963e6a7eaac48175a62f589c143 (patch)
tree44058b9aaf1e3c9dc15531847f5c748821eeccfb
parent38bdb650f902d275d6b2f9c2d8247fd960525583 (diff)
downloadlinux-ff3074a4dd6c0963e6a7eaac48175a62f589c143.tar.gz
linux-ff3074a4dd6c0963e6a7eaac48175a62f589c143.tar.bz2
linux-ff3074a4dd6c0963e6a7eaac48175a62f589c143.zip
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>
-rw-r--r--net/mac80211/cfg.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/net/mac80211/cfg.c b/net/mac80211/cfg.c
index f4efbfa4f237..e55970bf2ba0 100644
--- a/net/mac80211/cfg.c
+++ b/net/mac80211/cfg.c
@@ -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);
}