cfg80211: reg: Remove unused function parameter
authorMichal Sojka <sojkam1@fel.cvut.cz>
Mon, 23 Nov 2015 18:27:14 +0000 (19:27 +0100)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 4 Dec 2015 13:43:32 +0000 (14:43 +0100)
Signed-off-by: Michal Sojka <sojkam1@fel.cvut.cz>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/wireless/reg.c

index 2e8d6f39ed564ac7111be036a1f735da1d87d68b..43b3e577b2eabc439469f99562da3a7b8152b766 100644 (file)
@@ -1052,7 +1052,7 @@ static u32 map_regdom_flags(u32 rd_flags)
 }
 
 static const struct ieee80211_reg_rule *
-freq_reg_info_regd(struct wiphy *wiphy, u32 center_freq,
+freq_reg_info_regd(u32 center_freq,
                   const struct ieee80211_regdomain *regd, u32 bw)
 {
        int i;
@@ -1097,7 +1097,7 @@ __freq_reg_info(struct wiphy *wiphy, u32 center_freq, u32 min_bw)
        u32 bw;
 
        for (bw = MHZ_TO_KHZ(20); bw >= min_bw; bw = bw / 2) {
-               reg_rule = freq_reg_info_regd(wiphy, center_freq, regd, bw);
+               reg_rule = freq_reg_info_regd(center_freq, regd, bw);
                if (!IS_ERR(reg_rule))
                        return reg_rule;
        }
@@ -1765,8 +1765,7 @@ static void handle_channel_custom(struct wiphy *wiphy,
        u32 bw;
 
        for (bw = MHZ_TO_KHZ(20); bw >= MHZ_TO_KHZ(5); bw = bw / 2) {
-               reg_rule = freq_reg_info_regd(wiphy,
-                                             MHZ_TO_KHZ(chan->center_freq),
+               reg_rule = freq_reg_info_regd(MHZ_TO_KHZ(chan->center_freq),
                                              regd, bw);
                if (!IS_ERR(reg_rule))
                        break;