Commit 7bb0dffd authored by simran singhal's avatar simran singhal Committed by Greg Kroah-Hartman

staging: rtl8723bs: hal: Use (true/false) in assignment to bool

This patch assigns (true/false) to boolean EDCCA_State instead of (1/0).
And, there is no need of comparing EDCCA_State explicitly with constant
1.
Signed-off-by: default avatarsimran singhal <singhalsimran0@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 888db9a6
...@@ -278,11 +278,11 @@ void odm_Adaptivity(void *pDM_VOID, u8 IGI) ...@@ -278,11 +278,11 @@ void odm_Adaptivity(void *pDM_VOID, u8 IGI)
if (!pDM_Odm->ForceEDCCA) { if (!pDM_Odm->ForceEDCCA) {
if (pDM_Odm->RSSI_Min > pDM_Odm->AdapEn_RSSI) if (pDM_Odm->RSSI_Min > pDM_Odm->AdapEn_RSSI)
EDCCA_State = 1; EDCCA_State = true;
else if (pDM_Odm->RSSI_Min < (pDM_Odm->AdapEn_RSSI - 5)) else if (pDM_Odm->RSSI_Min < (pDM_Odm->AdapEn_RSSI - 5))
EDCCA_State = 0; EDCCA_State = false;
} else } else
EDCCA_State = 1; EDCCA_State = true;
if ( if (
pDM_Odm->bLinked && pDM_Odm->bLinked &&
...@@ -305,7 +305,7 @@ void odm_Adaptivity(void *pDM_VOID, u8 IGI) ...@@ -305,7 +305,7 @@ void odm_Adaptivity(void *pDM_VOID, u8 IGI)
) )
); );
if (EDCCA_State == 1) { if (EDCCA_State) {
Diff = IGI_target-(s8)IGI; Diff = IGI_target-(s8)IGI;
TH_L2H_dmc = pDM_Odm->TH_L2H_ini + Diff; TH_L2H_dmc = pDM_Odm->TH_L2H_ini + Diff;
if (TH_L2H_dmc > 10) if (TH_L2H_dmc > 10)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment