aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohannes Berg <johannes.berg@intel.com>2010-09-13 08:46:32 -0400
committerJohn W. Linville <linville@tuxdriver.com>2010-09-14 16:08:03 -0400
commitb5be3efc34294cc34e305903df6a388950e8d1f3 (patch)
tree1c495823d405f249a5e7224d5864dbf73e110ccf
parent740c1aa3b01251c3c324743f395621749b099065 (diff)
iwlwifi: remove unused conf variables
There are a number of conf variables that are unused, remove them. Signed-off-by: Johannes Berg <johannes.berg@intel.com> Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com> Acked-by: Wey-Yi W Guy <wey-yi.w.guy@intel.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-agn-lib.c3
-rw-r--r--drivers/net/wireless/iwlwifi/iwl3945-base.c6
2 files changed, 0 insertions, 9 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-agn-lib.c b/drivers/net/wireless/iwlwifi/iwl-agn-lib.c
index ec99a72edb76..35470d280c14 100644
--- a/drivers/net/wireless/iwlwifi/iwl-agn-lib.c
+++ b/drivers/net/wireless/iwlwifi/iwl-agn-lib.c
@@ -1158,7 +1158,6 @@ void iwlagn_request_scan(struct iwl_priv *priv, struct ieee80211_vif *vif)
1158 .flags = CMD_SIZE_HUGE, 1158 .flags = CMD_SIZE_HUGE,
1159 }; 1159 };
1160 struct iwl_scan_cmd *scan; 1160 struct iwl_scan_cmd *scan;
1161 struct ieee80211_conf *conf = NULL;
1162 struct iwl_rxon_context *ctx = &priv->contexts[IWL_RXON_CTX_BSS]; 1161 struct iwl_rxon_context *ctx = &priv->contexts[IWL_RXON_CTX_BSS];
1163 u32 rate_flags = 0; 1162 u32 rate_flags = 0;
1164 u16 cmd_len; 1163 u16 cmd_len;
@@ -1175,8 +1174,6 @@ void iwlagn_request_scan(struct iwl_priv *priv, struct ieee80211_vif *vif)
1175 if (vif) 1174 if (vif)
1176 ctx = iwl_rxon_ctx_from_vif(vif); 1175 ctx = iwl_rxon_ctx_from_vif(vif);
1177 1176
1178 conf = ieee80211_get_hw_conf(priv->hw);
1179
1180 cancel_delayed_work(&priv->scan_check); 1177 cancel_delayed_work(&priv->scan_check);
1181 1178
1182 if (!iwl_is_ready(priv)) { 1179 if (!iwl_is_ready(priv)) {
diff --git a/drivers/net/wireless/iwlwifi/iwl3945-base.c b/drivers/net/wireless/iwlwifi/iwl3945-base.c
index 9c90be1ea0df..be1e75e3be55 100644
--- a/drivers/net/wireless/iwlwifi/iwl3945-base.c
+++ b/drivers/net/wireless/iwlwifi/iwl3945-base.c
@@ -2568,12 +2568,9 @@ static void __iwl3945_down(struct iwl_priv *priv)
2568{ 2568{
2569 unsigned long flags; 2569 unsigned long flags;
2570 int exit_pending = test_bit(STATUS_EXIT_PENDING, &priv->status); 2570 int exit_pending = test_bit(STATUS_EXIT_PENDING, &priv->status);
2571 struct ieee80211_conf *conf = NULL;
2572 2571
2573 IWL_DEBUG_INFO(priv, DRV_NAME " is going down\n"); 2572 IWL_DEBUG_INFO(priv, DRV_NAME " is going down\n");
2574 2573
2575 conf = ieee80211_get_hw_conf(priv->hw);
2576
2577 if (!exit_pending) 2574 if (!exit_pending)
2578 set_bit(STATUS_EXIT_PENDING, &priv->status); 2575 set_bit(STATUS_EXIT_PENDING, &priv->status);
2579 2576
@@ -2827,13 +2824,10 @@ void iwl3945_request_scan(struct iwl_priv *priv, struct ieee80211_vif *vif)
2827 .flags = CMD_SIZE_HUGE, 2824 .flags = CMD_SIZE_HUGE,
2828 }; 2825 };
2829 struct iwl3945_scan_cmd *scan; 2826 struct iwl3945_scan_cmd *scan;
2830 struct ieee80211_conf *conf = NULL;
2831 u8 n_probes = 0; 2827 u8 n_probes = 0;
2832 enum ieee80211_band band; 2828 enum ieee80211_band band;
2833 bool is_active = false; 2829 bool is_active = false;
2834 2830
2835 conf = ieee80211_get_hw_conf(priv->hw);
2836
2837 cancel_delayed_work(&priv->scan_check); 2831 cancel_delayed_work(&priv->scan_check);
2838 2832
2839 if (!iwl_is_ready(priv)) { 2833 if (!iwl_is_ready(priv)) {