From: John W. Linville Date: Tue, 29 Jun 2010 17:55:04 +0000 (-0400) Subject: mac80211: remove unnecessary check in ieee80211_dump_survey X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=ff3074a4dd6c0963e6a7eaac48175a62f589c143;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git mac80211: remove unnecessary check in ieee80211_dump_survey This check is duplicated in drv_get_survey. Reported-by: Johannes Berg Signed-off-by: John W. Linville --- 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); }