Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7ed46c96 authored by Albert I's avatar Albert I Committed by Sooraj S
Browse files

staging: prima: Remove unnecessary brackets



* Silence clang's parentheses-equality warnings

Change-Id: I441e51e7dd9a9aaf3d3f55c5c4b006dda8762ee8
Signed-off-by: default avatarAlbert I <krascgq@outlook.co.id>
Signed-off-by: default avatarkhusika <khusikadhamar@gmail.com>
parent 5aada2bb
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1520,7 +1520,7 @@ static void hdd_conf_suspend_ind(hdd_context_t* pHddCtx,
    hddLog(VOS_TRACE_LEVEL_INFO,
      "%s: send wlan suspend indication", __func__);

    if((pHddCtx->cfg_ini->nEnableSuspend == WLAN_MAP_SUSPEND_TO_MCAST_BCAST_FILTER))
    if(pHddCtx->cfg_ini->nEnableSuspend == WLAN_MAP_SUSPEND_TO_MCAST_BCAST_FILTER)
    {
        //Configure supported OffLoads
        hdd_conf_hostoffload(pAdapter, TRUE);
+3 −3
Original line number Diff line number Diff line
@@ -2119,8 +2119,8 @@ void hdd_check_for_unsafe_ch(hdd_adapter_t *phostapd_adapter,

    for (channelLoop = 0; channelLoop < unsafeChannelCount; channelLoop++)
    {
        if ((unsafeChannelList[channelLoop] ==
             phostapd_adapter->sessionCtx.ap.operatingChannel)) {
        if (unsafeChannelList[channelLoop] ==
             phostapd_adapter->sessionCtx.ap.operatingChannel) {
            if ((AUTO_CHANNEL_SELECT ==
                phostapd_adapter->sessionCtx.ap.sapConfig.channel)
                && (WLAN_HDD_SOFTAP == phostapd_adapter->device_mode)) {
@@ -2372,7 +2372,7 @@ void hdd_hostapd_ch_avoid_cb

           for (i = 0; i < unsafeChannelCount; i++)
           {
               if ((pSapCtx->sap_sec_chan == unsafeChannelList[i]))
               if (pSapCtx->sap_sec_chan == unsafeChannelList[i])
               {
                   /* Current SAP Secondary channel is un-safe channel */
                   VOS_TRACE( VOS_MODULE_ID_SAP, VOS_TRACE_LEVEL_ERROR,
+1 −1
Original line number Diff line number Diff line
@@ -878,7 +878,7 @@ __limProcessDelTsReq(tpAniSirGlobal pMac, tANI_U8 *pRxPacketInfo,tpPESession pse
    tsinfo = delts.wmeTspecPresent ? &delts.tspec.tsinfo : &delts.tsinfo;

    // if no Admit Control, ignore the request
    if ((tsinfo->traffic.accessPolicy == SIR_MAC_ACCESSPOLICY_EDCA))
    if (tsinfo->traffic.accessPolicy == SIR_MAC_ACCESSPOLICY_EDCA)
    {
    
        if (upToAc(tsinfo->traffic.userPrio) >= MAX_NUM_AC)
+4 −4
Original line number Diff line number Diff line
@@ -5422,8 +5422,8 @@ ePhyChanBondState limGet11ACPhyCBState(tpAniSirGlobal pMac, tANI_U8 channel, tAN
        return htSecondaryChannelOffset;
    }

    if ( (htSecondaryChannelOffset 
                 == PHY_DOUBLE_CHANNEL_LOW_PRIMARY)
    if ( htSecondaryChannelOffset 
                 == PHY_DOUBLE_CHANNEL_LOW_PRIMARY
       )
    {
        if ((channel + 2 ) == peerCenterChan )
@@ -5437,8 +5437,8 @@ ePhyChanBondState limGet11ACPhyCBState(tpAniSirGlobal pMac, tANI_U8 channel, tAN
                       FL("Invalid Channel Number = %d Center Chan = %d "),
                                 channel, peerCenterChan);
    }
    if ( (htSecondaryChannelOffset 
                 == PHY_DOUBLE_CHANNEL_HIGH_PRIMARY)
    if ( htSecondaryChannelOffset 
                 == PHY_DOUBLE_CHANNEL_HIGH_PRIMARY
       )
    {
        if ((channel - 2 ) == peerCenterChan )
+1 −1
Original line number Diff line number Diff line
@@ -498,7 +498,7 @@ limProcessProbeReqFrame(tpAniSirGlobal pMac, tANI_U8 *pRxPacketInfo,tpPESession
                        return;
                    }
                }
                if ((psessionEntry->limSystemRole == eLIM_AP_ROLE))
                if (psessionEntry->limSystemRole == eLIM_AP_ROLE)
                {
                  
                    if ( (psessionEntry->APWPSIEs.SirWPSProbeRspIE.FieldPresent &
Loading