staging: r8188eu: remove unnecessary return
authorMartin Kaiser <martin@kaiser.cx>
Sat, 15 Oct 2022 15:24:38 +0000 (17:24 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 20 Oct 2022 15:35:03 +0000 (17:35 +0200)
Remove the return statement at the end of the if branch. We can continue
to the final return after the if-else.

Signed-off-by: Martin Kaiser <martin@kaiser.cx>
Tested-by: Philipp Hortmann <philipp.g.hortmann@gmail.com> # Edimax N150
Acked-by: Pavel Skripkin <paskripkin@gmail.com>
Link: https://lore.kernel.org/r/20221015152440.232281-8-martin@kaiser.cx
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/r8188eu/core/rtw_mlme_ext.c

index 40df0f9982f4a15701f4114119075e4d08a50b2d..465f51bce0e304631b0d4f9f703cbb99b5ba1dec 100644 (file)
@@ -1492,8 +1492,6 @@ unsigned int OnDeAuth(struct adapter *padapter, struct recv_frame *precv_frame)
                spin_unlock_bh(&pstapriv->asoc_list_lock);
 
                associated_clients_update(padapter, updated);
-
-               return _SUCCESS;
        } else {
                int     ignore_received_deauth = 0;