Commit abca20ad authored by Sergio Paracuellos's avatar Sergio Paracuellos Committed by Greg Kroah-Hartman

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: default avatarSergio Paracuellos <sergio.paracuellos@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent e6bc5053
...@@ -94,14 +94,12 @@ static void ks_wlan_hw_wakeup_task(struct work_struct *work) ...@@ -94,14 +94,12 @@ static void ks_wlan_hw_wakeup_task(struct work_struct *work)
tasklet_enable(&priv->sme_task); tasklet_enable(&priv->sme_task);
} }
static static void ks_wlan_do_power_save(struct ks_wlan_private *priv)
int ks_wlan_do_power_save(struct ks_wlan_private *priv)
{ {
if (is_connect_status(priv->connect_status)) if (is_connect_status(priv->connect_status))
hostif_sme_enqueue(priv, SME_POW_MNGMT_REQUEST); hostif_sme_enqueue(priv, SME_POW_MNGMT_REQUEST);
else else
priv->dev_state = DEVICE_STATE_READY; priv->dev_state = DEVICE_STATE_READY;
return 0;
} }
static static
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment