mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-13 15:19:26 -04:00
staging: ks7010: change return value of ks_wlan_do_power_save function
This commit change return value of ks_wlan_do_power_save function from int to void. This function is just returning zero and return value is not being checked also, so it is nonsense to return an integer. Signed-off-by: Sergio Paracuellos <sergio.paracuellos@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
e6bc5053b8
commit
abca20adc5
@@ -94,14 +94,12 @@ static void ks_wlan_hw_wakeup_task(struct work_struct *work)
|
||||
tasklet_enable(&priv->sme_task);
|
||||
}
|
||||
|
||||
static
|
||||
int ks_wlan_do_power_save(struct ks_wlan_private *priv)
|
||||
static void ks_wlan_do_power_save(struct ks_wlan_private *priv)
|
||||
{
|
||||
if (is_connect_status(priv->connect_status))
|
||||
hostif_sme_enqueue(priv, SME_POW_MNGMT_REQUEST);
|
||||
else
|
||||
priv->dev_state = DEVICE_STATE_READY;
|
||||
return 0;
|
||||
}
|
||||
|
||||
static
|
||||
|
||||
Reference in New Issue
Block a user