From: Martin Kaiser Date: Mon, 24 Oct 2022 08:14:16 +0000 (+0200) Subject: staging: r8188eu: remove an else branch X-Git-Tag: v6.2-rc1~69^2~157 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d667d36d689eb3b0cd1bd0d09b36cbad9625f10b;p=thirdparty%2Fkernel%2Flinux.git staging: r8188eu: remove an else branch If we go into this else branch, go2asoc is 0. We can continue to the end of the function. The final if condition will be false. Signed-off-by: Martin Kaiser Tested-by: Philipp Hortmann # Edimax N150 Link: https://lore.kernel.org/r/20221024081417.66441-17-martin@kaiser.cx Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/r8188eu/core/rtw_mlme_ext.c b/drivers/staging/r8188eu/core/rtw_mlme_ext.c index a93133a9ca567..ba95d2391319b 100644 --- a/drivers/staging/r8188eu/core/rtw_mlme_ext.c +++ b/drivers/staging/r8188eu/core/rtw_mlme_ext.c @@ -848,8 +848,6 @@ static void OnAuthClient(struct adapter *padapter, struct recv_frame *precv_fram } else if (seq == 4) { if (pmlmeinfo->auth_algo == dot11AuthAlgrthm_Shared) go2asoc = 1; - else - return; } if (go2asoc)