Staging: rtl8723au: core: Fix switch-case indent
authorTina Ruchandani <ruchandani.tina@gmail.com>
Fri, 24 Oct 2014 03:17:48 +0000 (20:17 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 27 Oct 2014 02:33:06 +0000 (10:33 +0800)
This patch fixes the following checkpatch errors
in rtw_cmd.c :
ERROR: switch and case should be at the same indent

Signed-off-by: Tina Ruchandani <ruchandani.tina@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8723au/core/rtw_cmd.c

index 65a3cd1..01b44a4 100644 (file)
@@ -1021,44 +1021,44 @@ static void lps_ctrl_wk_hdl(struct rtw_adapter *padapter, u8 lps_ctrl_type)
                return;
 
        switch (lps_ctrl_type) {
-               case LPS_CTRL_SCAN:
-                       rtl8723a_BT_wifiscan_notify(padapter, true);
-                       if (!rtl8723a_BT_using_antenna_1(padapter)) {
-                               if (check_fwstate(pmlmepriv, _FW_LINKED))
-                                       LPS_Leave23a(padapter);
+       case LPS_CTRL_SCAN:
+               rtl8723a_BT_wifiscan_notify(padapter, true);
+               if (!rtl8723a_BT_using_antenna_1(padapter)) {
+                       if (check_fwstate(pmlmepriv, _FW_LINKED))
+                               LPS_Leave23a(padapter);
                        }
-                       break;
-               case LPS_CTRL_JOINBSS:
+               break;
+       case LPS_CTRL_JOINBSS:
+               LPS_Leave23a(padapter);
+               break;
+       case LPS_CTRL_CONNECT:
+               mstatus = 1;/* connect */
+               /*  Reset LPS Setting */
+               padapter->pwrctrlpriv.LpsIdleCount = 0;
+               rtl8723a_set_FwJoinBssReport_cmd(padapter, 1);
+               rtl8723a_BT_mediastatus_notify(padapter, mstatus);
+               break;
+       case LPS_CTRL_DISCONNECT:
+               mstatus = 0;/* disconnect */
+               rtl8723a_BT_mediastatus_notify(padapter, mstatus);
+               if (!rtl8723a_BT_using_antenna_1(padapter))
                        LPS_Leave23a(padapter);
-                       break;
-               case LPS_CTRL_CONNECT:
-                       mstatus = 1;/* connect */
-                       /*  Reset LPS Setting */
-                       padapter->pwrctrlpriv.LpsIdleCount = 0;
-                       rtl8723a_set_FwJoinBssReport_cmd(padapter, 1);
-                       rtl8723a_BT_mediastatus_notify(padapter, mstatus);
-                       break;
-               case LPS_CTRL_DISCONNECT:
-                       mstatus = 0;/* disconnect */
-                       rtl8723a_BT_mediastatus_notify(padapter, mstatus);
-                       if (!rtl8723a_BT_using_antenna_1(padapter))
-                               LPS_Leave23a(padapter);
-                       rtl8723a_set_FwJoinBssReport_cmd(padapter, 0);
-                       break;
-               case LPS_CTRL_SPECIAL_PACKET:
-                       pwrpriv->DelayLPSLastTimeStamp = jiffies;
-                       rtl8723a_BT_specialpacket_notify(padapter);
-                       if (!rtl8723a_BT_using_antenna_1(padapter))
-                               LPS_Leave23a(padapter);
-                       break;
-               case LPS_CTRL_LEAVE:
-                       rtl8723a_BT_lps_leave(padapter);
-                       if (!rtl8723a_BT_using_antenna_1(padapter))
-                               LPS_Leave23a(padapter);
-                       break;
+               rtl8723a_set_FwJoinBssReport_cmd(padapter, 0);
+               break;
+       case LPS_CTRL_SPECIAL_PACKET:
+               pwrpriv->DelayLPSLastTimeStamp = jiffies;
+               rtl8723a_BT_specialpacket_notify(padapter);
+               if (!rtl8723a_BT_using_antenna_1(padapter))
+                       LPS_Leave23a(padapter);
+               break;
+       case LPS_CTRL_LEAVE:
+               rtl8723a_BT_lps_leave(padapter);
+               if (!rtl8723a_BT_using_antenna_1(padapter))
+                       LPS_Leave23a(padapter);
+               break;
 
-               default:
-                       break;
+       default:
+               break;
        }
 }