Commit 4eff3e9d authored by Janani Sankara Babu's avatar Janani Sankara Babu Committed by Greg Kroah-Hartman

Staging:rtl8192e Fix Comparison to true is error prone

This patch removes the comaprison to bool value in the code
Signed-off-by: default avatarJanani Sankara Babu <jananis37@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 6b6da622
...@@ -365,7 +365,7 @@ int rtllib_rx_ADDBARsp(struct rtllib_device *ieee, struct sk_buff *skb) ...@@ -365,7 +365,7 @@ int rtllib_rx_ADDBARsp(struct rtllib_device *ieee, struct sk_buff *skb)
pAdmittedBA = &pTS->TxAdmittedBARecord; pAdmittedBA = &pTS->TxAdmittedBARecord;
if (pAdmittedBA->bValid == true) { if (pAdmittedBA->bValid) {
netdev_dbg(ieee->dev, "%s(): ADDBA response already admitted\n", netdev_dbg(ieee->dev, "%s(): ADDBA response already admitted\n",
__func__); __func__);
return -1; return -1;
...@@ -485,7 +485,7 @@ void TsInitAddBA(struct rtllib_device *ieee, struct tx_ts_record *pTS, ...@@ -485,7 +485,7 @@ void TsInitAddBA(struct rtllib_device *ieee, struct tx_ts_record *pTS,
{ {
struct ba_record *pBA = &pTS->TxPendingBARecord; struct ba_record *pBA = &pTS->TxPendingBARecord;
if (pBA->bValid == true && bOverwritePending == false) if (pBA->bValid && !bOverwritePending)
return; return;
DeActivateBAEntry(ieee, pBA); DeActivateBAEntry(ieee, pBA);
......
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