staging: r8188eu: remove unnecessary return
authorMartin Kaiser <martin@kaiser.cx>
Mon, 24 Oct 2022 08:14:15 +0000 (10:14 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 25 Oct 2022 17:19:39 +0000 (19:19 +0200)
Remove a return statement at the end of a function.

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

index 6ac3e41..a93133a 100644 (file)
@@ -852,10 +852,8 @@ static void OnAuthClient(struct adapter *padapter, struct recv_frame *precv_fram
                        return;
        }
 
-       if (go2asoc) {
+       if (go2asoc)
                start_clnt_assoc(padapter);
-               return;
-       }
 }
 
 static void UpdateBrateTbl(u8 *mbrate)