diff options
author | Johannes Berg <johannes.berg@intel.com> | 2011-09-22 18:14:57 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2011-09-27 14:34:08 -0400 |
commit | 98efb4a52b5c64c79647ea4fdb2c6a3f3db6e743 (patch) | |
tree | 06d87025170ccef3f24f6d4f6676e4aa6bb2c810 /drivers/net | |
parent | 0288356272153f916f31b8331780a7336872f63b (diff) |
iwlagn: make iwl_scan_cancel_timeout void
The return value of iwl_scan_cancel_timeout()
isn't used anywhere, so let's just remove it.
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-core.h | 2 | ||||
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-scan.c | 4 |
2 files changed, 2 insertions, 4 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-core.h b/drivers/net/wireless/iwlwifi/iwl-core.h index 8ed72e8f35e4..e55ffad83950 100644 --- a/drivers/net/wireless/iwlwifi/iwl-core.h +++ b/drivers/net/wireless/iwlwifi/iwl-core.h | |||
@@ -318,7 +318,7 @@ int iwl_set_tx_power(struct iwl_priv *priv, s8 tx_power, bool force); | |||
318 | ******************************************************************************/ | 318 | ******************************************************************************/ |
319 | void iwl_init_scan_params(struct iwl_priv *priv); | 319 | void iwl_init_scan_params(struct iwl_priv *priv); |
320 | int iwl_scan_cancel(struct iwl_priv *priv); | 320 | int iwl_scan_cancel(struct iwl_priv *priv); |
321 | int iwl_scan_cancel_timeout(struct iwl_priv *priv, unsigned long ms); | 321 | void iwl_scan_cancel_timeout(struct iwl_priv *priv, unsigned long ms); |
322 | void iwl_force_scan_end(struct iwl_priv *priv); | 322 | void iwl_force_scan_end(struct iwl_priv *priv); |
323 | int iwl_mac_hw_scan(struct ieee80211_hw *hw, | 323 | int iwl_mac_hw_scan(struct ieee80211_hw *hw, |
324 | struct ieee80211_vif *vif, | 324 | struct ieee80211_vif *vif, |
diff --git a/drivers/net/wireless/iwlwifi/iwl-scan.c b/drivers/net/wireless/iwlwifi/iwl-scan.c index 74204ec5b267..d9596ba39b82 100644 --- a/drivers/net/wireless/iwlwifi/iwl-scan.c +++ b/drivers/net/wireless/iwlwifi/iwl-scan.c | |||
@@ -169,7 +169,7 @@ int iwl_scan_cancel(struct iwl_priv *priv) | |||
169 | * @ms: amount of time to wait (in milliseconds) for scan to abort | 169 | * @ms: amount of time to wait (in milliseconds) for scan to abort |
170 | * | 170 | * |
171 | */ | 171 | */ |
172 | int iwl_scan_cancel_timeout(struct iwl_priv *priv, unsigned long ms) | 172 | void iwl_scan_cancel_timeout(struct iwl_priv *priv, unsigned long ms) |
173 | { | 173 | { |
174 | unsigned long timeout = jiffies + msecs_to_jiffies(ms); | 174 | unsigned long timeout = jiffies + msecs_to_jiffies(ms); |
175 | 175 | ||
@@ -184,8 +184,6 @@ int iwl_scan_cancel_timeout(struct iwl_priv *priv, unsigned long ms) | |||
184 | break; | 184 | break; |
185 | msleep(20); | 185 | msleep(20); |
186 | } | 186 | } |
187 | |||
188 | return test_bit(STATUS_SCAN_HW, &priv->shrd->status); | ||
189 | } | 187 | } |
190 | 188 | ||
191 | /* Service response to REPLY_SCAN_CMD (0x80) */ | 189 | /* Service response to REPLY_SCAN_CMD (0x80) */ |