staging: rtl8188eu: remove parentheses in hal8188e_rate_adaptive.c
authorMichael Straube <straube.linux@gmail.com>
Wed, 28 Nov 2018 17:29:02 +0000 (18:29 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 5 Dec 2018 08:42:26 +0000 (09:42 +0100)
Remove unnecessary parentheses reported by checkpatch.

Signed-off-by: Michael Straube <straube.linux@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8188eu/hal/hal8188e_rate_adaptive.c

index 02f423accee87d2edff82bc0dd43bbc48ffd10f3..79e13d0765539de658777b47a1238430f3a280bb 100644 (file)
@@ -554,7 +554,7 @@ int ODM_RAInfo_Init(struct odm_dm_struct *dm_odm, u8 macid)
        u8 max_rate_idx = 0x13; /* MCS7 */
 
        if (dm_odm->pWirelessMode)
-               WirelessMode = *(dm_odm->pWirelessMode);
+               WirelessMode = *dm_odm->pWirelessMode;
 
        if (WirelessMode != 0xFF) {
                if (WirelessMode & ODM_WM_N24G)
@@ -661,7 +661,7 @@ void ODM_RA_UpdateRateInfo_8188E(struct odm_dm_struct *dm_odm, u8 macid, u8 Rate
                     ("macid =%d RateID = 0x%x RateMask = 0x%x SGIEnable =%d\n",
                     macid, RateID, RateMask, SGIEnable));
 
-       pRaInfo = &(dm_odm->RAInfo[macid]);
+       pRaInfo = &dm_odm->RAInfo[macid];
        pRaInfo->RateID = RateID;
        pRaInfo->RateMask = RateMask;
        pRaInfo->SGIEnable = SGIEnable;
@@ -677,7 +677,7 @@ void ODM_RA_SetRSSI_8188E(struct odm_dm_struct *dm_odm, u8 macid, u8 Rssi)
        ODM_RT_TRACE(dm_odm, ODM_COMP_RATE_ADAPTIVE, ODM_DBG_TRACE,
                     (" macid =%d Rssi =%d\n", macid, Rssi));
 
-       pRaInfo = &(dm_odm->RAInfo[macid]);
+       pRaInfo = &dm_odm->RAInfo[macid];
        pRaInfo->RssiStaRA = Rssi;
 }
 
@@ -711,7 +711,7 @@ void ODM_RA_TxRPT2Handle_8188E(struct odm_dm_struct *dm_odm, u8 *TxRPT_Buf, u16
                else
                        valid = (1 << MacId) & macid_entry0;
 
-               pRAInfo = &(dm_odm->RAInfo[MacId]);
+               pRAInfo = &dm_odm->RAInfo[MacId];
                if (valid) {
                        pRAInfo->RTY[0] = (u16)GET_TX_REPORT_TYPE1_RERTY_0(pBuffer);
                        pRAInfo->RTY[1] = (u16)GET_TX_REPORT_TYPE1_RERTY_1(pBuffer);