Fix coding style issue

Signed-off-by: Jacky Boen <aqi...@gmail.com>
---
 drivers/staging/rtl8188eu/hal/usb_halinit.c | 30 ++++++++++++++---------------
 1 file changed, 15 insertions(+), 15 deletions(-)

diff --git a/drivers/staging/rtl8188eu/hal/usb_halinit.c 
b/drivers/staging/rtl8188eu/hal/usb_halinit.c
index f5e8ac0..a3fffd7 100644
--- a/drivers/staging/rtl8188eu/hal/usb_halinit.c
+++ b/drivers/staging/rtl8188eu/hal/usb_halinit.c
@@ -1004,7 +1004,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;
 
@@ -1209,7 +1209,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_) {
@@ -1360,7 +1360,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 
*/
 
@@ -1417,7 +1417,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)) {
@@ -1487,7 +1487,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]);
 
@@ -1900,19 +1900,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:
@@ -1935,7 +1935,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;
@@ -1963,8 +1963,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;
@@ -1977,8 +1977,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 */
@@ -2019,8 +2019,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 */
 
-- 
2.7.4

Reply via email to