mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-19 10:44:14 +08:00
Staging: drivers: rtl8188eu: fixed extraneous parentheses
Fix coding style issue Signed-off-by: Jacky Boen <aqiank@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
a305990d38
commit
d5fdbca674
@ -999,7 +999,7 @@ static unsigned int rtl8188eu_inirp_init(struct adapter *Adapter)
|
||||
u8 i;
|
||||
struct recv_buf *precvbuf;
|
||||
uint status;
|
||||
struct recv_priv *precvpriv = &(Adapter->recvpriv);
|
||||
struct recv_priv *precvpriv = &Adapter->recvpriv;
|
||||
|
||||
status = _SUCCESS;
|
||||
|
||||
@ -1204,7 +1204,7 @@ static void hw_var_set_opmode(struct adapter *Adapter, u8 variable, u8 *val)
|
||||
StopTxBeacon(Adapter);
|
||||
|
||||
usb_write8(Adapter, REG_BCN_CTRL, 0x19);/* disable atim wnd */
|
||||
} else if ((mode == _HW_STATE_ADHOC_)) {
|
||||
} else if (mode == _HW_STATE_ADHOC_) {
|
||||
ResumeTxBeacon(Adapter);
|
||||
usb_write8(Adapter, REG_BCN_CTRL, 0x1a);
|
||||
} else if (mode == _HW_STATE_AP_) {
|
||||
@ -1355,7 +1355,7 @@ static void SetHwReg8188EU(struct adapter *Adapter, u8 variable, u8 *val)
|
||||
{
|
||||
u64 tsf;
|
||||
struct mlme_ext_priv *pmlmeext = &Adapter->mlmeextpriv;
|
||||
struct mlme_ext_info *pmlmeinfo = &(pmlmeext->mlmext_info);
|
||||
struct mlme_ext_info *pmlmeinfo = &pmlmeext->mlmext_info;
|
||||
|
||||
tsf = pmlmeext->TSFValue - rtw_modular64(pmlmeext->TSFValue, (pmlmeinfo->bcn_interval*1024)) - 1024; /* us */
|
||||
|
||||
@ -1412,7 +1412,7 @@ static void SetHwReg8188EU(struct adapter *Adapter, u8 variable, u8 *val)
|
||||
usb_write8(Adapter, REG_BCN_CTRL, usb_read8(Adapter, REG_BCN_CTRL) | BIT(4));
|
||||
} else { /* sitesurvey done */
|
||||
struct mlme_ext_priv *pmlmeext = &Adapter->mlmeextpriv;
|
||||
struct mlme_ext_info *pmlmeinfo = &(pmlmeext->mlmext_info);
|
||||
struct mlme_ext_info *pmlmeinfo = &pmlmeext->mlmext_info;
|
||||
|
||||
if ((is_client_associated_to_ap(Adapter)) ||
|
||||
((pmlmeinfo->state&0x03) == WIFI_FW_ADHOC_STATE)) {
|
||||
@ -1482,7 +1482,7 @@ static void SetHwReg8188EU(struct adapter *Adapter, u8 variable, u8 *val)
|
||||
{
|
||||
u8 u1bAIFS, aSifsTime;
|
||||
struct mlme_ext_priv *pmlmeext = &Adapter->mlmeextpriv;
|
||||
struct mlme_ext_info *pmlmeinfo = &(pmlmeext->mlmext_info);
|
||||
struct mlme_ext_info *pmlmeinfo = &pmlmeext->mlmext_info;
|
||||
|
||||
usb_write8(Adapter, REG_SLOT, val[0]);
|
||||
|
||||
@ -1895,19 +1895,19 @@ GetHalDefVar8188EUsb(
|
||||
case HAL_DEF_RA_DECISION_RATE:
|
||||
{
|
||||
u8 MacID = *((u8 *)pValue);
|
||||
*((u8 *)pValue) = ODM_RA_GetDecisionRate_8188E(&(haldata->odmpriv), MacID);
|
||||
*((u8 *)pValue) = ODM_RA_GetDecisionRate_8188E(&haldata->odmpriv, MacID);
|
||||
}
|
||||
break;
|
||||
case HAL_DEF_RA_SGI:
|
||||
{
|
||||
u8 MacID = *((u8 *)pValue);
|
||||
*((u8 *)pValue) = ODM_RA_GetShortGI_8188E(&(haldata->odmpriv), MacID);
|
||||
*((u8 *)pValue) = ODM_RA_GetShortGI_8188E(&haldata->odmpriv, MacID);
|
||||
}
|
||||
break;
|
||||
case HAL_DEF_PT_PWR_STATUS:
|
||||
{
|
||||
u8 MacID = *((u8 *)pValue);
|
||||
*((u8 *)pValue) = ODM_RA_GetHwPwrStatus_8188E(&(haldata->odmpriv), MacID);
|
||||
*((u8 *)pValue) = ODM_RA_GetHwPwrStatus_8188E(&haldata->odmpriv, MacID);
|
||||
}
|
||||
break;
|
||||
case HW_VAR_MAX_RX_AMPDU_FACTOR:
|
||||
@ -1930,7 +1930,7 @@ GetHalDefVar8188EUsb(
|
||||
break;
|
||||
case HW_DEF_ODM_DBG_FLAG:
|
||||
{
|
||||
struct odm_dm_struct *dm_ocm = &(haldata->odmpriv);
|
||||
struct odm_dm_struct *dm_ocm = &haldata->odmpriv;
|
||||
pr_info("dm_ocm->DebugComponents = 0x%llx\n", dm_ocm->DebugComponents);
|
||||
}
|
||||
break;
|
||||
@ -1958,8 +1958,8 @@ static void UpdateHalRAMask8188EUsb(struct adapter *adapt, u32 mac_id, u8 rssi_l
|
||||
struct sta_info *psta;
|
||||
struct hal_data_8188e *haldata = GET_HAL_DATA(adapt);
|
||||
struct mlme_ext_priv *pmlmeext = &adapt->mlmeextpriv;
|
||||
struct mlme_ext_info *pmlmeinfo = &(pmlmeext->mlmext_info);
|
||||
struct wlan_bssid_ex *cur_network = &(pmlmeinfo->network);
|
||||
struct mlme_ext_info *pmlmeinfo = &pmlmeext->mlmext_info;
|
||||
struct wlan_bssid_ex *cur_network = &pmlmeinfo->network;
|
||||
|
||||
if (mac_id >= NUM_STA) /* CAM_SIZE */
|
||||
return;
|
||||
@ -1972,8 +1972,8 @@ static void UpdateHalRAMask8188EUsb(struct adapter *adapt, u32 mac_id, u8 rssi_l
|
||||
networkType = judge_network_type(adapt, cur_network->SupportedRates, supportRateNum) & 0xf;
|
||||
raid = networktype_to_raid(networkType);
|
||||
mask = update_supported_rate(cur_network->SupportedRates, supportRateNum);
|
||||
mask |= (pmlmeinfo->HT_enable) ? update_MSC_rate(&(pmlmeinfo->HT_caps)) : 0;
|
||||
if (support_short_GI(adapt, &(pmlmeinfo->HT_caps)))
|
||||
mask |= (pmlmeinfo->HT_enable) ? update_MSC_rate(&pmlmeinfo->HT_caps) : 0;
|
||||
if (support_short_GI(adapt, &pmlmeinfo->HT_caps))
|
||||
shortGIrate = true;
|
||||
break;
|
||||
case 1:/* for broadcast/multicast */
|
||||
@ -2014,8 +2014,8 @@ static void UpdateHalRAMask8188EUsb(struct adapter *adapt, u32 mac_id, u8 rssi_l
|
||||
static void SetBeaconRelatedRegisters8188EUsb(struct adapter *adapt)
|
||||
{
|
||||
u32 value32;
|
||||
struct mlme_ext_priv *pmlmeext = &(adapt->mlmeextpriv);
|
||||
struct mlme_ext_info *pmlmeinfo = &(pmlmeext->mlmext_info);
|
||||
struct mlme_ext_priv *pmlmeext = &adapt->mlmeextpriv;
|
||||
struct mlme_ext_info *pmlmeinfo = &pmlmeext->mlmext_info;
|
||||
u32 bcn_ctrl_reg = REG_BCN_CTRL;
|
||||
/* reset TSF, enable update TSF, correcting TSF On Beacon */
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user