staging: rtl8723bs: fix indentation
authorSevinj Aghayeva <sevinj.aghayeva@gmail.com>
Tue, 5 Apr 2022 16:16:43 +0000 (12:16 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 7 Apr 2022 17:52:31 +0000 (19:52 +0200)
Adhere to Linux kernel coding indentation style. Also remove the comments that
became irrelevant after fixing indentation.

Reported by checkpatch:

WARNING: suspect code indent for conditional statements

Signed-off-by: Sevinj Aghayeva <sevinj.aghayeva@gmail.com>
Link: https://lore.kernel.org/r/20220405161643.GA630826@euclid
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8723bs/core/rtw_mlme_ext.c

index 04e29e2..1bdbd09 100644 (file)
@@ -5143,17 +5143,9 @@ void link_timer_hdl(struct timer_list *t)
        } else if (pmlmeinfo->state & WIFI_FW_AUTH_STATE) {
                /* re-auth timer */
                if (++pmlmeinfo->reauth_count > REAUTH_LIMIT) {
-                       /* if (pmlmeinfo->auth_algo != dot11AuthAlgrthm_Auto) */
-                       /*  */
-                               pmlmeinfo->state = 0;
-                               report_join_res(padapter, -1);
-                               return;
-                       /*  */
-                       /* else */
-                       /*  */
-                       /*      pmlmeinfo->auth_algo = dot11AuthAlgrthm_Shared; */
-                       /*      pmlmeinfo->reauth_count = 0; */
-                       /*  */
+                       pmlmeinfo->state = 0;
+                       report_join_res(padapter, -1);
+                       return;
                }
 
                pmlmeinfo->auth_seq = 1;