Commit c44893aa authored by Mihaela Muraru's avatar Mihaela Muraru Committed by Greg Kroah-Hartman

Staging: ks7010: Delete unnecessary return statement

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: default avatarMihaela Muraru <mihaela.muraru21@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 31a86a53
...@@ -1921,7 +1921,6 @@ void hostif_sme_set_wep(struct ks_wlan_private *priv, int type) ...@@ -1921,7 +1921,6 @@ void hostif_sme_set_wep(struct ks_wlan_private *priv, int type)
break; break;
} }
return;
} }
struct wpa_suite_t { struct wpa_suite_t {
...@@ -2110,7 +2109,6 @@ void hostif_sme_set_rsn(struct ks_wlan_private *priv, int type) ...@@ -2110,7 +2109,6 @@ void hostif_sme_set_rsn(struct ks_wlan_private *priv, int type)
break; break;
} }
return;
} }
static static
...@@ -2218,7 +2216,6 @@ void hostif_sme_mode_setup(struct ks_wlan_private *priv) ...@@ -2218,7 +2216,6 @@ void hostif_sme_mode_setup(struct ks_wlan_private *priv)
break; break;
} }
return;
} }
static static
...@@ -2319,7 +2316,6 @@ void hostif_sme_powermgt_set(struct ks_wlan_private *priv) ...@@ -2319,7 +2316,6 @@ void hostif_sme_powermgt_set(struct ks_wlan_private *priv)
} }
hostif_power_mngmt_request(priv, mode, wake_up, receiveDTIMs); hostif_power_mngmt_request(priv, mode, wake_up, receiveDTIMs);
return;
} }
static static
...@@ -2337,7 +2333,6 @@ void hostif_sme_sleep_set(struct ks_wlan_private *priv) ...@@ -2337,7 +2333,6 @@ void hostif_sme_sleep_set(struct ks_wlan_private *priv)
break; break;
} }
return;
} }
static static
...@@ -2395,7 +2390,6 @@ void hostif_sme_set_key(struct ks_wlan_private *priv, int type) ...@@ -2395,7 +2390,6 @@ void hostif_sme_set_key(struct ks_wlan_private *priv, int type)
&priv->wpa.key[2].rx_seq[0]); &priv->wpa.key[2].rx_seq[0]);
break; break;
} }
return;
} }
static static
...@@ -2631,7 +2625,6 @@ void hostif_sme_task(unsigned long dev) ...@@ -2631,7 +2625,6 @@ void hostif_sme_task(unsigned long dev)
tasklet_schedule(&priv->sme_task); tasklet_schedule(&priv->sme_task);
} }
} }
return;
} }
/* send to Station Management Entity module */ /* send to Station Management Entity module */
...@@ -2715,5 +2708,4 @@ int hostif_init(struct ks_wlan_private *priv) ...@@ -2715,5 +2708,4 @@ int hostif_init(struct ks_wlan_private *priv)
void hostif_exit(struct ks_wlan_private *priv) void hostif_exit(struct ks_wlan_private *priv)
{ {
tasklet_kill(&priv->sme_task); tasklet_kill(&priv->sme_task);
return;
} }
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