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>
This commit is contained in:
Родитель
0288356272
Коммит
98efb4a52b
|
@ -318,7 +318,7 @@ int iwl_set_tx_power(struct iwl_priv *priv, s8 tx_power, bool force);
|
||||||
******************************************************************************/
|
******************************************************************************/
|
||||||
void iwl_init_scan_params(struct iwl_priv *priv);
|
void iwl_init_scan_params(struct iwl_priv *priv);
|
||||||
int iwl_scan_cancel(struct iwl_priv *priv);
|
int iwl_scan_cancel(struct iwl_priv *priv);
|
||||||
int iwl_scan_cancel_timeout(struct iwl_priv *priv, unsigned long ms);
|
void iwl_scan_cancel_timeout(struct iwl_priv *priv, unsigned long ms);
|
||||||
void iwl_force_scan_end(struct iwl_priv *priv);
|
void iwl_force_scan_end(struct iwl_priv *priv);
|
||||||
int iwl_mac_hw_scan(struct ieee80211_hw *hw,
|
int iwl_mac_hw_scan(struct ieee80211_hw *hw,
|
||||||
struct ieee80211_vif *vif,
|
struct ieee80211_vif *vif,
|
||||||
|
|
|
@ -169,7 +169,7 @@ int iwl_scan_cancel(struct iwl_priv *priv)
|
||||||
* @ms: amount of time to wait (in milliseconds) for scan to abort
|
* @ms: amount of time to wait (in milliseconds) for scan to abort
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
int iwl_scan_cancel_timeout(struct iwl_priv *priv, unsigned long ms)
|
void iwl_scan_cancel_timeout(struct iwl_priv *priv, unsigned long ms)
|
||||||
{
|
{
|
||||||
unsigned long timeout = jiffies + msecs_to_jiffies(ms);
|
unsigned long timeout = jiffies + msecs_to_jiffies(ms);
|
||||||
|
|
||||||
|
@ -184,8 +184,6 @@ int iwl_scan_cancel_timeout(struct iwl_priv *priv, unsigned long ms)
|
||||||
break;
|
break;
|
||||||
msleep(20);
|
msleep(20);
|
||||||
}
|
}
|
||||||
|
|
||||||
return test_bit(STATUS_SCAN_HW, &priv->shrd->status);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Service response to REPLY_SCAN_CMD (0x80) */
|
/* Service response to REPLY_SCAN_CMD (0x80) */
|
||||||
|
|
Загрузка…
Ссылка в новой задаче