staging: ks7010: change return value of ks_wlan_do_power_save function
authorSergio Paracuellos <sergio.paracuellos@gmail.com>
Mon, 16 Apr 2018 10:29:27 +0000 (12:29 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 23 Apr 2018 12:29:50 +0000 (14:29 +0200)
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>
drivers/staging/ks7010/ks_hostif.c

index f720d28..b646b46 100644 (file)
@@ -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