STAGING: rtl8192u: fix checkpatch error by adding space after switch
authorXenia Ragiadakou <burzalodowa@gmail.com>
Sun, 12 May 2013 00:15:08 +0000 (03:15 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 13 May 2013 14:17:58 +0000 (07:17 -0700)
This patch fixes the following checkpatch error:
ERROR: space required before the open parenthesis '('

Signed-off-by: Xenia Ragiadakou <burzalodowa@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8192u/ieee80211/dot11d.c
drivers/staging/rtl8192u/ieee80211/ieee80211_tx.c
drivers/staging/rtl8192u/ieee80211/rtl819x_HTProc.c
drivers/staging/rtl8192u/ieee80211/rtl819x_TSProc.c
drivers/staging/rtl8192u/r8190_rtl8256.c
drivers/staging/rtl8192u/r8192U_core.c
drivers/staging/rtl8192u/r8192U_dm.c
drivers/staging/rtl8192u/r8192U_wx.c
drivers/staging/rtl8192u/r819xU_cmdpkt.c
drivers/staging/rtl8192u/r819xU_firmware.c
drivers/staging/rtl8192u/r819xU_phy.c

index c6f377a8a0f09bc54052152a9fdaf7c590d859dc..34edcfab96be0c5ae46171e25d935c340a14e52e 100644 (file)
@@ -148,7 +148,7 @@ DOT11D_ScanComplete(
 {
        PRT_DOT11D_INFO pDot11dInfo = GET_DOT11D_INFO(dev);
 
-       switch(pDot11dInfo->State)
+       switch (pDot11dInfo->State)
        {
        case DOT11D_STATE_LEARNED:
                pDot11dInfo->State = DOT11D_STATE_DONE;
index 77b9e12ef014bf1419b94012620f6822de8dc548..995504207fc6615c67cf092a47bacfce6c4c75c5 100644 (file)
@@ -356,7 +356,7 @@ void ieee80211_tx_query_agg_cap(struct ieee80211_device *ieee, struct sk_buff *s
                }
        }
 FORCED_AGG_SETTING:
-       switch(pHTInfo->ForcedAMPDUMode )
+       switch (pHTInfo->ForcedAMPDUMode )
        {
                case HT_AGG_AUTO:
                        break;
index 02c843ae2f582a759b87b9e7403c0f5cfc795f6d..e956da5a2d76ebb13c5d56185eb65a2df33a6cac 100644 (file)
@@ -177,7 +177,7 @@ void HTDebugHTInfo(u8 *InfoIE, u8 *TitleString)
 
        IEEE80211_DEBUG(IEEE80211_DL_HT, "\tPrimary channel = %d\n", pHTInfoEle->ControlChl);
        IEEE80211_DEBUG(IEEE80211_DL_HT, "\tSenondary channel =");
-       switch(pHTInfoEle->ExtChlOffset)
+       switch (pHTInfoEle->ExtChlOffset)
        {
                case 0:
                        IEEE80211_DEBUG(IEEE80211_DL_HT, "Not Present\n");
@@ -195,7 +195,7 @@ void HTDebugHTInfo(u8 *InfoIE, u8 *TitleString)
        IEEE80211_DEBUG(IEEE80211_DL_HT, "\tRecommended channel width = %s\n", (pHTInfoEle->RecommemdedTxWidth)?"20Mhz": "40Mhz");
 
        IEEE80211_DEBUG(IEEE80211_DL_HT, "\tOperation mode for protection = ");
-       switch(pHTInfoEle->OptMode)
+       switch (pHTInfoEle->OptMode)
        {
                case 0:
                        IEEE80211_DEBUG(IEEE80211_DL_HT, "No Protection\n");
@@ -801,7 +801,7 @@ u8 HT_PickMCSRate(struct ieee80211_device *ieee, u8 *pOperateMCS)
                return false;
        }
 
-       switch(ieee->mode)
+       switch (ieee->mode)
        {
        case IEEE_A:
        case IEEE_B:
index cdcb23fdd3fd6a8c1fbd0c80cb91777dbbda1b53..3058120a32439dfbc1de30aee6b4bcc4d90bbea0 100644 (file)
@@ -367,7 +367,7 @@ bool GetTs(
                        return false;
                }
 
-               switch(TID)
+               switch (TID)
                {
                case 0:
                case 3:
index 3f447cc564c6b259211e13c4fa1fa8b027a937c2..37cb5072d26953ec6f9b366c21cb9a909609a137 100644 (file)
@@ -34,7 +34,7 @@ void PHY_SetRF8256Bandwidth(struct net_device *dev , HT_CHANNEL_WIDTH Bandwidth)
                if (!rtl8192_phy_CheckIsLegalRFPath(dev, eRFPath))
                                continue;
 
-               switch(Bandwidth)
+               switch (Bandwidth)
                {
                        case HT_CHANNEL_WIDTH_20:
                                if(priv->card_8192_version == VERSION_819xU_A || priv->card_8192_version == VERSION_819xU_B)// 8256 D-cut, E-cut, xiong: consider it later!
@@ -133,7 +133,7 @@ void phy_RF8256_Config_ParaFile(struct net_device *dev)
        //      pHalData->RfReg0Value[eRFPath] =  rtl8192_phy_QueryRFReg(dev, (RF90_RADIO_PATH_E)eRFPath, rGlobalCtrl, bMaskDWord);
 
                /*----Store original RFENV control type----*/
-               switch(eRFPath)
+               switch (eRFPath)
                {
                case RF90_PATH_A:
                case RF90_PATH_C:
@@ -168,7 +168,7 @@ void phy_RF8256_Config_ParaFile(struct net_device *dev)
                RetryTimes = ConstRetryTimes;
                RF3_Final_Value = 0;
                /*----Initialize RF fom connfiguration file----*/
-               switch(eRFPath)
+               switch (eRFPath)
                {
                case RF90_PATH_A:
                        while(RF3_Final_Value!=RegValueToBeCheck && RetryTimes!=0)
@@ -209,7 +209,7 @@ void phy_RF8256_Config_ParaFile(struct net_device *dev)
                }
 
                /*----Restore RFENV control type----*/;
-               switch(eRFPath)
+               switch (eRFPath)
                {
                case RF90_PATH_A:
                case RF90_PATH_C:
index 6ea9049be9863d4e87f83907a27ba87f6b8145e0..7c602d804bb06348d99b62d47b8811a469280397 100644 (file)
@@ -1014,7 +1014,7 @@ int alloc_tx_beacon_desc_ring(struct net_device *dev, int count)
 
 inline u16 ieeerate2rtlrate(int rate)
 {
-       switch(rate){
+       switch (rate){
        case 10:
        return 0;
        case 20:
@@ -1543,7 +1543,7 @@ void rtl8192_config_rate(struct net_device *dev, u16 *rate_config)
         for (i=0; i<net->rates_len; i++)
         {
                 basic_rate = net->rates[i]&0x7f;
-                switch(basic_rate)
+                switch (basic_rate)
                 {
                         case MGN_1M:   *rate_config |= RRSR_1M;        break;
                         case MGN_2M:   *rate_config |= RRSR_2M;        break;
@@ -1562,7 +1562,7 @@ void rtl8192_config_rate(struct net_device *dev, u16 *rate_config)
         for (i=0; i<net->rates_ex_len; i++)
         {
                 basic_rate = net->rates_ex[i]&0x7f;
-                switch(basic_rate)
+                switch (basic_rate)
                 {
                         case MGN_1M:   *rate_config |= RRSR_1M;        break;
                         case MGN_2M:   *rate_config |= RRSR_2M;        break;
@@ -1698,7 +1698,7 @@ u16 N_DBPSOfRate(u16 DataRate)
 {
         u16 N_DBPS = 24;
 
-        switch(DataRate)
+        switch (DataRate)
         {
         case 60:
          N_DBPS = 24;
@@ -1824,7 +1824,7 @@ u8 MapHwQueueToFirmwareQueue(u8 QueueID)
 {
        u8 QueueSelect = 0x0;       //defualt set to
 
-       switch(QueueID) {
+       switch (QueueID) {
        case BE_QUEUE:
                QueueSelect = QSLT_BE;  //or QSelect = pTcb->priority;
                break;
@@ -1870,7 +1870,7 @@ u8 MRateToHwRate8190Pci(u8 rate)
 {
        u8  ret = DESC90_RATE1M;
 
-       switch(rate) {
+       switch (rate) {
        case MGN_1M:    ret = DESC90_RATE1M;    break;
        case MGN_2M:    ret = DESC90_RATE2M;    break;
        case MGN_5_5M:  ret = DESC90_RATE5_5M;  break;
@@ -2581,7 +2581,7 @@ u8 rtl8192_getSupportedWireleeMode(struct net_device *dev)
 {
        struct r8192_priv *priv = ieee80211_priv(dev);
        u8 ret = 0;
-       switch(priv->rf_chip)
+       switch (priv->rf_chip)
        {
                case RF_8225:
                case RF_8256:
@@ -3019,7 +3019,7 @@ static void rtl8192_read_eeprom_info(struct net_device *dev)
        }//end if VersionID == VERSION_819xU_A
 
 //added by vivi, for dlink led, 20080416
-       switch(priv->eeprom_CustomerID)
+       switch (priv->eeprom_CustomerID)
        {
                case EEPROM_CID_RUNTOP:
                        priv->CustomerID = RT_CID_819x_RUNTOP;
@@ -3035,7 +3035,7 @@ static void rtl8192_read_eeprom_info(struct net_device *dev)
 
        }
 
-       switch(priv->CustomerID)
+       switch (priv->CustomerID)
        {
                case RT_CID_819x_RUNTOP:
                        priv->LedStrategy = SW_LED_MODE2;
@@ -3146,7 +3146,7 @@ void rtl8192_hwconfig(struct net_device *dev)
 
 // Set RRSR, RATR, and BW_OPMODE registers
        //
-       switch(priv->ieee80211->mode)
+       switch (priv->ieee80211->mode)
        {
        case WIRELESS_MODE_B:
                regBwOpMode = BW_OPMODE_20MHZ;
@@ -4402,7 +4402,7 @@ u8 HwRateToMRate90(bool bIsHT, u8 rate)
        u8  ret_rate = 0xff;
 
        if(!bIsHT) {
-               switch(rate) {
+               switch (rate) {
                case DESC90_RATE1M:   ret_rate = MGN_1M;         break;
                case DESC90_RATE2M:   ret_rate = MGN_2M;         break;
                case DESC90_RATE5_5M: ret_rate = MGN_5_5M;       break;
@@ -4423,7 +4423,7 @@ u8 HwRateToMRate90(bool bIsHT, u8 rate)
                }
 
        } else {
-               switch(rate) {
+               switch (rate) {
                case DESC90_RATEMCS0:   ret_rate = MGN_MCS0;    break;
                case DESC90_RATEMCS1:   ret_rate = MGN_MCS1;    break;
                case DESC90_RATEMCS2:   ret_rate = MGN_MCS2;    break;
@@ -4890,7 +4890,7 @@ static void rtl8192_query_rxphystatus(
                {
                        report = pcck_buf->cck_agc_rpt & 0xc0;
                        report = report>>6;
-                       switch(report)
+                       switch (report)
                        {
                                //Fixed by Jacken from Bryant 2008-03-20
                                //Original value is -38 , -26 , -14 , -2
@@ -4913,7 +4913,7 @@ static void rtl8192_query_rxphystatus(
                {
                        report = pcck_buf->cck_agc_rpt & 0x60;
                        report = report>>5;
-                       switch(report)
+                       switch (report)
                        {
                                case 0x3:
                                        rx_pwr_all = -35 - ((pcck_buf->cck_agc_rpt & 0x1f)<<1) ;
@@ -5180,7 +5180,7 @@ UpdateReceivedRateHistogramStatistics8190(
        else
        preamble_guardinterval = 0;// long
 
-       switch(stats->rate)
+       switch (stats->rate)
        {
                //
                // CCK rate
index bc410f45d8e9631516420c09bdd6d9819022a72a..3d7a343e2cc018a3d4b0db9939a824a5142a9944 100644 (file)
@@ -3581,7 +3581,7 @@ void dm_check_fsync(struct net_device *dev)
        {
                if(priv->ieee80211->bfsync_enable == 0)
                {
-                       switch(priv->ieee80211->fsync_state)
+                       switch (priv->ieee80211->fsync_state)
                        {
                                case Default_Fsync:
                                        dm_StartHWFsync(dev);
@@ -3599,7 +3599,7 @@ void dm_check_fsync(struct net_device *dev)
                }
                else
                {
-                       switch(priv->ieee80211->fsync_state)
+                       switch (priv->ieee80211->fsync_state)
                        {
                                case Default_Fsync:
                                        dm_StartSWFsync(dev);
@@ -3632,7 +3632,7 @@ void dm_check_fsync(struct net_device *dev)
        }
        else
        {
-               switch(priv->ieee80211->fsync_state)
+               switch (priv->ieee80211->fsync_state)
                {
                        case HW_Fsync:
                                dm_EndHWFsync(dev);
index fc0de373f63de3d188cc6ff5039bc643c98d8a92..f191f04404d897affec4e1144a2f313e2677d0d5 100644 (file)
@@ -709,7 +709,7 @@ static int r8192_wx_set_enc(struct net_device *dev,
                #define CONF_WEP40  0x4
                #define CONF_WEP104 0x14
 
-               switch(wrqu->encoding.flags & IW_ENCODE_INDEX){
+               switch (wrqu->encoding.flags & IW_ENCODE_INDEX){
                case 0: key_idx = ieee->tx_keyidx; break;
                case 1: key_idx = 0; break;
                case 2: key_idx = 1; break;
index fbd5f4b9374fb662bedf3c13a08e78aace1ce31f..d5c75ed7a445688a2322ae83760a359ef38a489e 100644 (file)
@@ -732,7 +732,7 @@ cmpk_message_handle_rx(
                /* 2007/01/17 MH We support aggregation of different cmd in the same packet. */
                element_id = pcmd_buff[0];
 
-               switch(element_id)
+               switch (element_id)
                {
                        case RX_TX_FEEDBACK:
                                cmpk_handle_tx_feedback (dev, pcmd_buff);
index c6b97e242884ad3a97c2c725f1f6bab4c1fa2037..0c477754d9be83559841ed1f291772f4a4ff2a0d 100644 (file)
@@ -333,7 +333,7 @@ bool init_firmware(struct net_device *dev)
                        goto download_firmware_fail;
                }
 
-               switch(init_step) {
+               switch (init_step) {
                case FW_INIT_STEP0_BOOT:
                        /* Download boot
                         * initialize command descriptor.
index a6a8f90c2748e7f157dce57e5ac7417504d2643e..54f4cba08cfab242d40d2f6bf46e86e278c4768b 100644 (file)
@@ -710,7 +710,7 @@ u8 rtl8192_phy_checkBBAndRF(struct net_device *dev, HW90_BLOCK_E CheckBlock, RF9
                //
                // Write Data to register and readback
                //
-               switch(CheckBlock)
+               switch (CheckBlock)
                {
                case HW90_BLOCK_MAC:
                        RT_TRACE(COMP_ERR, "PHY_CheckBBRFOK(): Never Write 0x100 here!");
@@ -892,7 +892,7 @@ void rtl8192_phy_setTxPower(struct net_device *dev, u8 channel)
        u8      powerlevel = priv->TxPowerLevelCCK[channel-1];
        u8      powerlevelOFDM24G = priv->TxPowerLevelOFDM24G[channel-1];
 
-       switch(priv->rf_chip)
+       switch (priv->rf_chip)
        {
        case RF_8256:
                PHY_SetRF8256CCKTxPower(dev, powerlevel); //need further implement
@@ -917,7 +917,7 @@ void rtl8192_phy_RFConfig(struct net_device *dev)
 {
        struct r8192_priv *priv = ieee80211_priv(dev);
 
-       switch(priv->rf_chip)
+       switch (priv->rf_chip)
        {
                case RF_8256:
                        PHY_RF8256_Config(dev);
@@ -956,7 +956,7 @@ u8 rtl8192_phy_ConfigRFWithHeaderFile(struct net_device *dev, RF90_RADIO_PATH_E
        //u32* pRFArray;
        u8 ret = 0;
 
-       switch(eRFPath){
+       switch (eRFPath){
        case RF90_PATH_A:
                for(i = 0;i<RadioA_ArrayLength; i=i+2){
 
@@ -1026,7 +1026,7 @@ void rtl8192_SetTxPowerLevel(struct net_device *dev, u8 channel)
        u8      powerlevel = priv->TxPowerLevelCCK[channel-1];
        u8      powerlevelOFDM24G = priv->TxPowerLevelOFDM24G[channel-1];
 
-       switch(priv->rf_chip)
+       switch (priv->rf_chip)
        {
        case RF_8225:
 #ifdef TO_DO_LIST
@@ -1071,10 +1071,10 @@ bool rtl8192_SetRFPowerState(struct net_device *dev, RT_RF_POWER_STATE eRFPowerS
 
        priv->SetRFPowerStateInProgress = true;
 
-       switch(priv->rf_chip)
+       switch (priv->rf_chip)
        {
                case RF_8256:
-               switch( eRFPowerState )
+               switch ( eRFPowerState )
                {
                        case eRfOn:
        //RF-A, RF-B
@@ -1129,10 +1129,10 @@ bool rtl8192_SetRFPowerState(struct net_device *dev, RT_RF_POWER_STATE eRFPowerS
        {
                // Update current RF state variable.
                pHalData->eRFPowerState = eRFPowerState;
-               switch(pHalData->RFChipID )
+               switch (pHalData->RFChipID )
                {
                        case RF_8256:
-               switch(pHalData->eRFPowerState)
+               switch (pHalData->eRFPowerState)
                                {
                                case eRfOff:
                                        //
@@ -1283,7 +1283,7 @@ u8 rtl8192_phy_SwChnlStepByStep(struct net_device *dev, u8 channel, u8 *stage, u
 
                // <3> Fill up RF dependent command.
                RfDependCmdCnt = 0;
-               switch( priv->rf_chip )
+               switch ( priv->rf_chip )
                {
                case RF_8225:
                        if (!(channel >= 1 && channel <= 14))
@@ -1321,7 +1321,7 @@ u8 rtl8192_phy_SwChnlStepByStep(struct net_device *dev, u8 channel, u8 *stage, u
 
 
                do{
-                       switch(*stage)
+                       switch (*stage)
                        {
                        case 0:
                                CurrentCmd=&PreCommonCmd[*step];
@@ -1349,7 +1349,7 @@ u8 rtl8192_phy_SwChnlStepByStep(struct net_device *dev, u8 channel, u8 *stage, u
                                }
                        }
 
-                       switch(CurrentCmd->CmdID)
+                       switch (CurrentCmd->CmdID)
                        {
                        case CmdID_SetTxPowerLevel:
                                if(priv->card_8192_version == (u8)VERSION_819xU_A) //xiong: consider it later!
@@ -1452,7 +1452,7 @@ if (0) //to test current channel from RF reg 0x7.
        }
 }
        //--------------------------------------------
-       switch(priv->ieee80211->mode)
+       switch (priv->ieee80211->mode)
        {
        case WIRELESS_MODE_A:
        case WIRELESS_MODE_N_5G:
@@ -1527,7 +1527,7 @@ void rtl8192_SetBWModeWorkItem(struct net_device *dev)
        //<1>Set MAC register
        regBwOpMode = read_nic_byte(dev, BW_OPMODE);
 
-       switch(priv->CurrentChannelBW)
+       switch (priv->CurrentChannelBW)
        {
                case HT_CHANNEL_WIDTH_20:
                        regBwOpMode |= BW_OPMODE_20MHZ;
@@ -1547,7 +1547,7 @@ void rtl8192_SetBWModeWorkItem(struct net_device *dev)
        }
 
        //<2>Set PHY related register
-       switch(priv->CurrentChannelBW)
+       switch (priv->CurrentChannelBW)
        {
                case HT_CHANNEL_WIDTH_20:
                        // Add by Vivi 20071119
@@ -1617,7 +1617,7 @@ void rtl8192_SetBWModeWorkItem(struct net_device *dev)
        //Skip over setting of J-mode in BB register here. Default value is "None J mode". Emily 20070315
 
        //<3>Set RF related register
-       switch( priv->rf_chip )
+       switch ( priv->rf_chip )
        {
                case RF_8225:
 #ifdef TO_DO_LIST
@@ -1704,7 +1704,7 @@ extern void InitialGainOperateWorkItemCallBack(struct work_struct *work)
 
        Operation = priv->InitialGainOperateType;
 
-       switch(Operation)
+       switch (Operation)
        {
                case IG_Backup:
                        RT_TRACE(COMP_SCAN, "IG_Backup, backup the initial gain.\n");