staging: r8188eu: add missing spaces after ',' and before braces
authorMichael Straube <straube.linux@gmail.com>
Fri, 30 Jul 2021 20:41:53 +0000 (22:41 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 31 Jul 2021 07:21:12 +0000 (09:21 +0200)
Add missing spaces to clear checkpatch errors.

ERROR: space required before the open parenthesis '('
ERROR: space required before the open brace '{'
ERROR: space required after that ',' (ctx:ExV)

Signed-off-by: Michael Straube <straube.linux@gmail.com>
Link: https://lore.kernel.org/r/20210730204153.27270-2-straube.linux@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/r8188eu/core/rtw_ap.c
drivers/staging/r8188eu/core/rtw_mlme.c
drivers/staging/r8188eu/core/rtw_security.c
drivers/staging/r8188eu/hal/HalHWImg8188E_BB.c
drivers/staging/r8188eu/hal/hal_intf.c
drivers/staging/r8188eu/hal/odm_RegConfig8188E.c
drivers/staging/r8188eu/hal/rtl8188e_hal_init.c
drivers/staging/r8188eu/os_dep/rtw_android.c

index 463c9ca..0bb5451 100644 (file)
@@ -1028,7 +1028,7 @@ int rtw_check_beacon_data(struct adapter *padapter, u8 *pbuf,  int len)
                /* set  Max Rx AMPDU size  to 64K */
                pht_cap->ampdu_params_info |= (IEEE80211_HT_CAP_AMPDU_FACTOR & 0x03);
 
-               if(rf_type == RF_1T1R) {
+               if (rf_type == RF_1T1R) {
                        pht_cap->mcs.rx_mask[0] = 0xff;
                        pht_cap->mcs.rx_mask[1] = 0x0;
                }
index f07e4e2..d692f14 100644 (file)
@@ -1317,7 +1317,7 @@ static u8 search_max_mac_id(struct adapter *padapter)
 }
 
 /* FOR AP , AD-HOC mode */
-void rtw_sta_media_status_rpt(struct adapter *adapter,struct sta_info *psta,
+void rtw_sta_media_status_rpt(struct adapter *adapter, struct sta_info *psta,
                              u32 mstatus)
 {
        u16 media_status_rpt;
@@ -1330,7 +1330,7 @@ void rtw_sta_media_status_rpt(struct adapter *adapter,struct sta_info *psta,
        rtw_hal_set_hwreg(adapter, HW_VAR_TX_RPT_MAX_MACID, (u8 *)&macid);
        /* MACID|OPMODE:1 connect */
        media_status_rpt = (u16)((psta->mac_id<<8) | mstatus);
-       rtw_hal_set_hwreg(adapter,HW_VAR_H2C_MEDIA_STATUS_RPT,
+       rtw_hal_set_hwreg(adapter, HW_VAR_H2C_MEDIA_STATUS_RPT,
                          (u8 *)&media_status_rpt);
 }
 
@@ -1428,7 +1428,7 @@ void rtw_stadel_event_callback(struct adapter *adapter, u8 *pbuf)
        spin_lock_bh(&pmlmepriv->lock);
 
        if (check_fwstate(pmlmepriv, WIFI_STATION_STATE)) {
-               if(adapter->registrypriv.wifi_spec == 1)
+               if (adapter->registrypriv.wifi_spec == 1)
                        rtw_set_roaming(adapter, 0); /* don't roam */
                else if (rtw_to_roaming(adapter) > 0)
                        pmlmepriv->to_roaming--; /* this stadel_event is caused by roaming, decrease to_roaming */
@@ -1651,7 +1651,7 @@ static int rtw_check_join_candidate(struct mlme_priv *pmlmepriv
        if (rtw_is_desired_network(adapter, competitor)  == false)
                goto exit;
 
-       if(rtw_to_roaming(adapter) > 0) {
+       if (rtw_to_roaming(adapter) > 0) {
                if (rtw_get_passing_time_ms((u32)competitor->last_scanned) >= RTW_SCAN_RESULT_EXPIRE ||
                    is_same_ess(&competitor->network, &pmlmepriv->cur_network.network) == false)
                        goto exit;
@@ -1668,7 +1668,7 @@ static int rtw_check_join_candidate(struct mlme_priv *pmlmepriv
                        (*candidate)->network.Ssid.Ssid,
                        (*candidate)->network.MacAddress,
                        (int)(*candidate)->network.Rssi);
-               DBG_88E("[to_roaming:%u]\n",rtw_to_roaming(adapter));
+               DBG_88E("[to_roaming:%u]\n", rtw_to_roaming(adapter));
        }
 
 exit:
index ee4775b..2c1b9a6 100644 (file)
@@ -1229,7 +1229,7 @@ u32       rtw_aes_encrypt(struct adapter *padapter, u8 *pxmitframe)
                                        length = pattrib->last_txcmdsz-pattrib->hdrlen-pattrib->iv_len-pattrib->icv_len;
 
                                        aes_cipher(prwskey, pattrib->hdrlen, pframe, length);
-                               } else{
+                               } else {
                                        length = pxmitpriv->frag_len-pattrib->hdrlen-pattrib->iv_len-pattrib->icv_len ;
 
                                        aes_cipher(prwskey, pattrib->hdrlen, pframe, length);
@@ -1237,7 +1237,7 @@ u32       rtw_aes_encrypt(struct adapter *padapter, u8 *pxmitframe)
                                        pframe = (u8 *)RND4((size_t)(pframe));
                                }
                        }
-               } else{
+               } else {
                        RT_TRACE(_module_rtl871x_security_c_, _drv_err_, ("rtw_aes_encrypt: stainfo==NULL!!!\n"));
                        res = _FAIL;
                }
index fc58d5f..f908275 100644 (file)
@@ -539,7 +539,7 @@ enum HAL_STATUS ODM_ReadAndConfig_PHY_REG_1T_8188E(struct odm_dm_struct *dm_odm)
                                                        rtw_IOL_append_DELAY_US_cmd(pxmit_frame, 5);
                                                } else if (v1 == 0xf9) {
                                                        rtw_IOL_append_DELAY_US_cmd(pxmit_frame, 1);
-                                               } else{
+                                               } else {
                                                        if (v1 == 0xa24)
                                                                dm_odm->RFCalibrateInfo.RegA24 = v2;
 
index cb06358..1d813b6 100644 (file)
@@ -201,7 +201,7 @@ u8 rtw_hal_intf_ps_func(struct adapter *adapt,
 s32 rtw_hal_xmitframe_enqueue(struct adapter *padapter,
                              struct xmit_frame *pxmitframe)
 {
-       if(padapter->HalFunc.hal_xmitframe_enqueue)
+       if (padapter->HalFunc.hal_xmitframe_enqueue)
                return padapter->HalFunc.hal_xmitframe_enqueue(padapter, pxmitframe);
        return false;
 }
index a26c36c..1a20552 100644 (file)
@@ -77,7 +77,7 @@ void odm_ConfigBB_PHY_REG_PG_8188E(struct odm_dm_struct *pDM_Odm, u32 Addr,
                ODM_delay_us(5);
        } else if (Addr == 0xf9) {
                ODM_delay_us(1);
-       } else{
+       } else {
                ODM_RT_TRACE(pDM_Odm, ODM_COMP_INIT, ODM_DBG_LOUD,
                             ("===> @@@@@@@ ODM_ConfigBBWithHeaderFile: [PHY_REG] %08X %08X %08X\n",
                             Addr, Bitmask, Data));
index fa6c092..1a7a62d 100644 (file)
@@ -1741,7 +1741,7 @@ static struct HAL_VERSION ReadChipVersion8188E(struct adapter *padapter)
        } else if (IS_2T2R(ChipVersion)) {
                pHalData->rf_type = RF_2T2R;
                pHalData->NumTotalRFPath = 2;
-       } else{
+       } else {
                pHalData->rf_type = RF_1T1R;
                pHalData->NumTotalRFPath = 1;
        }
index ce02bfc..2b9e719 100644 (file)
@@ -62,12 +62,12 @@ static int g_wifi_on = true;
 int rtw_android_cmdstr_to_num(char *cmdstr)
 {
        int cmd_num;
-       for(cmd_num=0; cmd_num < ANDROID_WIFI_CMD_MAX; cmd_num++)
+       for (cmd_num=0; cmd_num < ANDROID_WIFI_CMD_MAX; cmd_num++)
 #if (LINUX_VERSION_CODE >= KERNEL_VERSION(4, 0, 0))
                if (!strncasecmp(cmdstr, android_wifi_cmd_str[cmd_num],
                    strlen(android_wifi_cmd_str[cmd_num])))
 #else
-               if(0 == strnicmp(cmdstr, android_wifi_cmd_str[cmd_num],
+               if (0 == strnicmp(cmdstr, android_wifi_cmd_str[cmd_num],
                   strlen(android_wifi_cmd_str[cmd_num])))
 #endif
                        break;