mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-09 02:00:43 -04:00
staging: rtl8192u: Using comparison to true is error prone
clear below issues reported by checkpatch.pl: CHECK: Using comparison to false is error prone Signed-off-by: John Oldman <john.oldman@polehill.co.uk> Link: https://lore.kernel.org/r/20200706162240.2770-1-john.oldman@polehill.co.uk Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
12414fa87b
commit
eab439bee0
@@ -2240,7 +2240,7 @@ static void dm_ctstoself(struct net_device *dev)
|
||||
unsigned long curTxOkCnt = 0;
|
||||
unsigned long curRxOkCnt = 0;
|
||||
|
||||
if (priv->ieee80211->bCTSToSelfEnable != true) {
|
||||
if (!priv->ieee80211->bCTSToSelfEnable) {
|
||||
pHTInfo->IOTAction &= ~HT_IOT_ACT_FORCED_CTS2SELF;
|
||||
return;
|
||||
}
|
||||
@@ -2944,7 +2944,7 @@ static void dm_dynamic_txpower(struct net_device *dev)
|
||||
unsigned int txhipower_threshold = 0;
|
||||
unsigned int txlowpower_threshold = 0;
|
||||
|
||||
if (priv->ieee80211->bdynamic_txpower_enable != true) {
|
||||
if (!priv->ieee80211->bdynamic_txpower_enable) {
|
||||
priv->bDynamicTxHighPower = false;
|
||||
priv->bDynamicTxLowPower = false;
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user