Staging: ks7010: Delete unnecessary return statement
authorMihaela Muraru <mihaela.muraru21@gmail.com>
Sat, 8 Oct 2016 07:22:17 +0000 (10:22 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 16 Oct 2016 08:24:59 +0000 (10:24 +0200)
This is a patch to ks_hostif.c file that fixes up a checkpatch.pl

WARNING: void function return statements are not generally useful.

The 'return' statement is not useful here, because it is not necessary to be
forced the exit of the function.

Signed-off-by: Mihaela Muraru <mihaela.muraru21@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/ks7010/ks_hostif.c

index 07954ee..5714cf7 100644 (file)
@@ -1921,7 +1921,6 @@ void hostif_sme_set_wep(struct ks_wlan_private *priv, int type)
                break;
        }
 
-       return;
 }
 
 struct wpa_suite_t {
@@ -2110,7 +2109,6 @@ void hostif_sme_set_rsn(struct ks_wlan_private *priv, int type)
                break;
 
        }
-       return;
 }
 
 static
@@ -2218,7 +2216,6 @@ void hostif_sme_mode_setup(struct ks_wlan_private *priv)
                break;
        }
 
-       return;
 }
 
 static
@@ -2319,7 +2316,6 @@ void hostif_sme_powermgt_set(struct ks_wlan_private *priv)
        }
        hostif_power_mngmt_request(priv, mode, wake_up, receiveDTIMs);
 
-       return;
 }
 
 static
@@ -2337,7 +2333,6 @@ void hostif_sme_sleep_set(struct ks_wlan_private *priv)
                break;
        }
 
-       return;
 }
 
 static
@@ -2395,7 +2390,6 @@ void hostif_sme_set_key(struct ks_wlan_private *priv, int type)
                                       &priv->wpa.key[2].rx_seq[0]);
                break;
        }
-       return;
 }
 
 static
@@ -2631,7 +2625,6 @@ void hostif_sme_task(unsigned long dev)
                                tasklet_schedule(&priv->sme_task);
                }
        }
-       return;
 }
 
 /* send to Station Management Entity module */
@@ -2715,5 +2708,4 @@ int hostif_init(struct ks_wlan_private *priv)
 void hostif_exit(struct ks_wlan_private *priv)
 {
        tasklet_kill(&priv->sme_task);
-       return;
 }