summaryrefslogtreecommitdiff
path: root/drivers/staging
diff options
context:
space:
mode:
authorsimran singhal <singhalsimran0@gmail.com>2017-02-12 02:23:15 +0530
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-02-12 13:42:59 +0100
commit0044defa922d6c3e56c2bf733e25b97cd5c57908 (patch)
treee8dda0df12f026a4c14a92dbdab8e6d4916d4bda /drivers/staging
parent3b8c57cfd275ff0e2fdc3845cacc98da1ee79316 (diff)
staging: rtl8192u: Removing true and false comparison
Remove comparison to true and false in if statement. Problem found usingcheckpatch.pl. CHECK: Using comparison to true is error prone CHECK: Using comparison to false is error prone Signed-off-by: simran singhal <singhalsimran0@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging')
-rw-r--r--drivers/staging/rtl8192u/ieee80211/rtl819x_BAProc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/staging/rtl8192u/ieee80211/rtl819x_BAProc.c b/drivers/staging/rtl8192u/ieee80211/rtl819x_BAProc.c
index 98fbb6ef484d..91ea77d5642e 100644
--- a/drivers/staging/rtl8192u/ieee80211/rtl819x_BAProc.c
+++ b/drivers/staging/rtl8192u/ieee80211/rtl819x_BAProc.c
@@ -496,7 +496,7 @@ int ieee80211_rx_ADDBARsp(struct ieee80211_device *ieee, struct sk_buff *skb)
// Check if related BA is waiting for setup.
// If not, reject by sending DELBA frame.
//
- if((pAdmittedBA->bValid==true))
+ if (pAdmittedBA->bValid)
{
// Since BA is already setup, we ignore all other ADDBA Response.
IEEE80211_DEBUG(IEEE80211_DL_BA, "OnADDBARsp(): Recv ADDBA Rsp. Drop because already admit it! \n");
@@ -650,7 +650,7 @@ TsInitAddBA(
{
PBA_RECORD pBA = &pTS->TxPendingBARecord;
- if(pBA->bValid==true && bOverwritePending==false)
+ if (pBA->bValid && !bOverwritePending)
return;
// Set parameters to "Pending" variable set