aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJérôme Pouiller <[email protected]>2020-04-20 18:03:08 +0200
committerGreg Kroah-Hartman <[email protected]>2020-04-23 13:26:05 +0200
commit06efad5808aa0db3528eca4b8faee4013ffd787b (patch)
treea5bb6c0608312ab3064078d22881743238b8f0e3
parenta2ed058918886b7a749ba884efc231b0977b3159 (diff)
staging: wfx: drop useless checks in wfx_do_unjoin()
The callers of wfx_do_unjoin() already take care of vif state. Therefore, it is not necessary to take care of the status of the interface. Signed-off-by: Jérôme Pouiller <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
-rw-r--r--drivers/staging/wfx/sta.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/drivers/staging/wfx/sta.c b/drivers/staging/wfx/sta.c
index 56cb6fff4a06..bc891b6e4392 100644
--- a/drivers/staging/wfx/sta.c
+++ b/drivers/staging/wfx/sta.c
@@ -286,12 +286,6 @@ void wfx_set_default_unicast_key(struct ieee80211_hw *hw,
// Call it with wdev->conf_mutex locked
static void wfx_do_unjoin(struct wfx_vif *wvif)
{
- if (!wvif->state)
- return;
-
- if (wvif->state == WFX_STATE_AP)
- return;
-
wvif->state = WFX_STATE_PASSIVE;
/* Unjoin is a reset. */