Commit d47f4db7 authored by Shobhit Kukreti's avatar Shobhit Kukreti Committed by Greg Kroah-Hartman

staging: rtl8723bs: hal: Remove True/False Comparisons

Removing comparisons to True/False in if statements.

Checkpatch reported:
CHECK: Using comparison to true is error prone
Signed-off-by: default avatarShobhit Kukreti <shobhitkukreti@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent f2e741cb
...@@ -1421,7 +1421,7 @@ static void halbtc8723b1ant_PsTdma( ...@@ -1421,7 +1421,7 @@ static void halbtc8723b1ant_PsTdma(
if (bTurnOn) { if (bTurnOn) {
if (pBtLinkInfo->bSlaveRole == true) if (pBtLinkInfo->bSlaveRole)
psTdmaByte4Val = psTdmaByte4Val | 0x1; /* 0x778 = 0x1 at wifi slot (no blocking BT Low-Pri pkts) */ psTdmaByte4Val = psTdmaByte4Val | 0x1; /* 0x778 = 0x1 at wifi slot (no blocking BT Low-Pri pkts) */
...@@ -2337,9 +2337,9 @@ static void halbtc8723b1ant_ActionWifiConnected(PBTC_COEXIST pBtCoexist) ...@@ -2337,9 +2337,9 @@ static void halbtc8723b1ant_ActionWifiConnected(PBTC_COEXIST pBtCoexist)
); );
} }
} else if ( } else if (
(pCoexSta->bPanExist == false) && (!pCoexSta->bPanExist) &&
(pCoexSta->bA2dpExist == false) && (!pCoexSta->bA2dpExist) &&
(pCoexSta->bHidExist == false) (!pCoexSta->bHidExist)
) )
halbtc8723b1ant_PowerSaveState(pBtCoexist, BTC_PS_WIFI_NATIVE, 0x0, 0x0); halbtc8723b1ant_PowerSaveState(pBtCoexist, BTC_PS_WIFI_NATIVE, 0x0, 0x0);
else else
......
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