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

Commit 0044defa authored by simran singhal's avatar simran singhal Committed by Greg Kroah-Hartman
Browse files

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: default avatarsimran singhal <singhalsimran0@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 3b8c57cf
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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