staging: rtl8192e: Using comparison to true is error prone
clear below issues reported by checkpatch.pl: CHECK: Using comparison to true is error prone CHECK: Using comparison to false is error prone Signed-off-by: John Oldman <john.oldman@polehill.co.uk> Link: https://lore.kernel.org/r/20200521084732.12576-1-john.oldman@polehill.co.uk Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
728774f780
commit
bf04362fc3
@ -456,7 +456,7 @@ static void _rtl92e_dm_bandwidth_autoswitch(struct net_device *dev)
|
||||
if (priv->CurrentChannelBW == HT_CHANNEL_WIDTH_20 ||
|
||||
!priv->rtllib->bandwidth_auto_switch.bautoswitch_enable)
|
||||
return;
|
||||
if (priv->rtllib->bandwidth_auto_switch.bforced_tx20Mhz == false) {
|
||||
if (!priv->rtllib->bandwidth_auto_switch.bforced_tx20Mhz) {
|
||||
if (priv->undecorated_smoothed_pwdb <=
|
||||
priv->rtllib->bandwidth_auto_switch.threshold_40Mhzto20Mhz)
|
||||
priv->rtllib->bandwidth_auto_switch.bforced_tx20Mhz = true;
|
||||
@ -1297,7 +1297,7 @@ static void _rtl92e_dm_dig_init(struct net_device *dev)
|
||||
static void _rtl92e_dm_ctrl_initgain_byrssi(struct net_device *dev)
|
||||
{
|
||||
|
||||
if (dm_digtable.dig_enable_flag == false)
|
||||
if (!dm_digtable.dig_enable_flag)
|
||||
return;
|
||||
|
||||
if (dm_digtable.dig_algorithm == DIG_ALGO_BY_FALSE_ALARM)
|
||||
@ -1332,7 +1332,7 @@ static void _rtl92e_dm_ctrl_initgain_byrssi_driver(struct net_device *dev)
|
||||
u8 i;
|
||||
static u8 fw_dig;
|
||||
|
||||
if (dm_digtable.dig_enable_flag == false)
|
||||
if (!dm_digtable.dig_enable_flag)
|
||||
return;
|
||||
|
||||
if (dm_digtable.dig_algorithm_switch)
|
||||
@ -1366,7 +1366,7 @@ static void _rtl92e_dm_ctrl_initgain_byrssi_false_alarm(struct net_device *dev)
|
||||
static u32 reset_cnt;
|
||||
u8 i;
|
||||
|
||||
if (dm_digtable.dig_enable_flag == false)
|
||||
if (!dm_digtable.dig_enable_flag)
|
||||
return;
|
||||
|
||||
if (dm_digtable.dig_algorithm_switch) {
|
||||
@ -1501,7 +1501,7 @@ static void _rtl92e_dm_initial_gain(struct net_device *dev)
|
||||
reset_cnt = 0;
|
||||
}
|
||||
|
||||
if (rtllib_act_scanning(priv->rtllib, true) == true) {
|
||||
if (rtllib_act_scanning(priv->rtllib, true)) {
|
||||
force_write = 1;
|
||||
return;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user