* [PATCH 04/10] atl1c: remove unneeded conversions to bool
@ 2019-10-16 18:19 Andrew F. Davis
2019-10-16 18:19 ` [PATCH 05/10] mlxsw: Remove " Andrew F. Davis
` (5 more replies)
0 siblings, 6 replies; 7+ messages in thread
From: Andrew F. Davis @ 2019-10-16 18:19 UTC (permalink / raw)
To: Jiri Kosina; +Cc: kernel-janitors, linux-kernel, Andrew F . Davis
Found with scripts/coccinelle/misc/boolconv.cocci.
Signed-off-by: Andrew F. Davis <afd@ti.com>
---
drivers/net/ethernet/atheros/atl1c/atl1c_main.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/ethernet/atheros/atl1c/atl1c_main.c b/drivers/net/ethernet/atheros/atl1c/atl1c_main.c
index 2b239ecea05f..d6385899762c 100644
--- a/drivers/net/ethernet/atheros/atl1c/atl1c_main.c
+++ b/drivers/net/ethernet/atheros/atl1c/atl1c_main.c
@@ -1189,7 +1189,7 @@ static void atl1c_start_mac(struct atl1c_adapter *adapter)
struct atl1c_hw *hw = &adapter->hw;
u32 mac, txq, rxq;
- hw->mac_duplex = adapter->link_duplex == FULL_DUPLEX ? true : false;
+ hw->mac_duplex = adapter->link_duplex == FULL_DUPLEX;
hw->mac_speed = adapter->link_speed == SPEED_1000 ?
atl1c_mac_speed_1000 : atl1c_mac_speed_10_100;
--
2.17.1
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [PATCH 05/10] mlxsw: Remove unneeded conversions to bool
2019-10-16 18:19 [PATCH 04/10] atl1c: remove unneeded conversions to bool Andrew F. Davis
@ 2019-10-16 18:19 ` Andrew F. Davis
2019-10-16 18:19 ` [PATCH 06/10] thermal: devfreq_cooling: " Andrew F. Davis
` (4 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: Andrew F. Davis @ 2019-10-16 18:19 UTC (permalink / raw)
To: Jiri Kosina; +Cc: kernel-janitors, linux-kernel, Andrew F . Davis
Found with scripts/coccinelle/misc/boolconv.cocci.
Signed-off-by: Andrew F. Davis <afd@ti.com>
---
drivers/net/ethernet/mellanox/mlxsw/switchx2.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/ethernet/mellanox/mlxsw/switchx2.c b/drivers/net/ethernet/mellanox/mlxsw/switchx2.c
index 1c14c051ee52..1de6a9c6cd00 100644
--- a/drivers/net/ethernet/mellanox/mlxsw/switchx2.c
+++ b/drivers/net/ethernet/mellanox/mlxsw/switchx2.c
@@ -180,7 +180,7 @@ static int mlxsw_sx_port_oper_status_get(struct mlxsw_sx_port *mlxsw_sx_port,
if (err)
return err;
oper_status = mlxsw_reg_paos_oper_status_get(paos_pl);
- *p_is_up = oper_status == MLXSW_PORT_ADMIN_STATUS_UP ? true : false;
+ *p_is_up = oper_status == MLXSW_PORT_ADMIN_STATUS_UP;
return 0;
}
--
2.17.1
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [PATCH 06/10] thermal: devfreq_cooling: Remove unneeded conversions to bool
2019-10-16 18:19 [PATCH 04/10] atl1c: remove unneeded conversions to bool Andrew F. Davis
2019-10-16 18:19 ` [PATCH 05/10] mlxsw: Remove " Andrew F. Davis
@ 2019-10-16 18:19 ` Andrew F. Davis
2019-10-16 18:19 ` [PATCH 07/10] [SCSI] Buslogic: " Andrew F. Davis
` (3 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: Andrew F. Davis @ 2019-10-16 18:19 UTC (permalink / raw)
To: Jiri Kosina; +Cc: kernel-janitors, linux-kernel, Andrew F . Davis
Found with scripts/coccinelle/misc/boolconv.cocci.
Signed-off-by: Andrew F. Davis <afd@ti.com>
---
drivers/thermal/devfreq_cooling.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/thermal/devfreq_cooling.c b/drivers/thermal/devfreq_cooling.c
index ef59256887ff..e386a3241700 100644
--- a/drivers/thermal/devfreq_cooling.c
+++ b/drivers/thermal/devfreq_cooling.c
@@ -85,7 +85,7 @@ static int partition_enable_opps(struct devfreq_cooling_device *dfc,
struct dev_pm_opp *opp;
int ret = 0;
unsigned int freq = dfc->freq_table[i];
- bool want_enable = i >= cdev_state ? true : false;
+ bool want_enable = i >= cdev_state;
opp = dev_pm_opp_find_freq_exact(dev, freq, !want_enable);
--
2.17.1
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [PATCH 07/10] [SCSI] Buslogic: Remove unneeded conversions to bool
2019-10-16 18:19 [PATCH 04/10] atl1c: remove unneeded conversions to bool Andrew F. Davis
2019-10-16 18:19 ` [PATCH 05/10] mlxsw: Remove " Andrew F. Davis
2019-10-16 18:19 ` [PATCH 06/10] thermal: devfreq_cooling: " Andrew F. Davis
@ 2019-10-16 18:19 ` Andrew F. Davis
2019-10-16 18:19 ` [PATCH 08/10] i40e: " Andrew F. Davis
` (2 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: Andrew F. Davis @ 2019-10-16 18:19 UTC (permalink / raw)
To: Jiri Kosina; +Cc: kernel-janitors, linux-kernel, Andrew F . Davis
Found with scripts/coccinelle/misc/boolconv.cocci.
Signed-off-by: Andrew F. Davis <afd@ti.com>
---
drivers/scsi/BusLogic.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/scsi/BusLogic.c b/drivers/scsi/BusLogic.c
index c25e8a54e869..6a0a74e9edc9 100644
--- a/drivers/scsi/BusLogic.c
+++ b/drivers/scsi/BusLogic.c
@@ -2236,7 +2236,7 @@ static bool __init blogic_inquiry(struct blogic_adapter *adapter)
"INQUIRE INSTALLED DEVICES ID 0 TO 7");
for (tgt_id = 0; tgt_id < 8; tgt_id++)
adapter->tgt_flags[tgt_id].tgt_exists =
- (installed_devs0to7[tgt_id] != 0 ? true : false);
+ (installed_devs0to7[tgt_id] != 0);
}
/*
Issue the Inquire Setup Information command.
--
2.17.1
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [PATCH 08/10] i40e: Remove unneeded conversions to bool
2019-10-16 18:19 [PATCH 04/10] atl1c: remove unneeded conversions to bool Andrew F. Davis
` (2 preceding siblings ...)
2019-10-16 18:19 ` [PATCH 07/10] [SCSI] Buslogic: " Andrew F. Davis
@ 2019-10-16 18:19 ` Andrew F. Davis
2019-10-16 18:19 ` [PATCH 09/10] ixgbe: " Andrew F. Davis
2019-10-16 18:19 ` [PATCH 10/10] ath5k: " Andrew F. Davis
5 siblings, 0 replies; 7+ messages in thread
From: Andrew F. Davis @ 2019-10-16 18:19 UTC (permalink / raw)
To: Jiri Kosina; +Cc: kernel-janitors, linux-kernel, Andrew F . Davis
Found with scripts/coccinelle/misc/boolconv.cocci.
Signed-off-by: Andrew F. Davis <afd@ti.com>
---
drivers/net/ethernet/intel/i40e/i40e_main.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/ethernet/intel/i40e/i40e_main.c b/drivers/net/ethernet/intel/i40e/i40e_main.c
index 6031223eafab..87a9f2b586d5 100644
--- a/drivers/net/ethernet/intel/i40e/i40e_main.c
+++ b/drivers/net/ethernet/intel/i40e/i40e_main.c
@@ -11435,7 +11435,7 @@ static int i40e_get_rss_aq(struct i40e_vsi *vsi, const u8 *seed,
}
if (lut) {
- bool pf_lut = vsi->type == I40E_VSI_MAIN ? true : false;
+ bool pf_lut = vsi->type == I40E_VSI_MAIN;
ret = i40e_aq_get_rss_lut(hw, vsi->id, pf_lut, lut, lut_size);
if (ret) {
--
2.17.1
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [PATCH 09/10] ixgbe: Remove unneeded conversions to bool
2019-10-16 18:19 [PATCH 04/10] atl1c: remove unneeded conversions to bool Andrew F. Davis
` (3 preceding siblings ...)
2019-10-16 18:19 ` [PATCH 08/10] i40e: " Andrew F. Davis
@ 2019-10-16 18:19 ` Andrew F. Davis
2019-10-16 18:19 ` [PATCH 10/10] ath5k: " Andrew F. Davis
5 siblings, 0 replies; 7+ messages in thread
From: Andrew F. Davis @ 2019-10-16 18:19 UTC (permalink / raw)
To: Jiri Kosina; +Cc: kernel-janitors, linux-kernel, Andrew F . Davis
Found with scripts/coccinelle/misc/boolconv.cocci.
Signed-off-by: Andrew F. Davis <afd@ti.com>
---
drivers/net/ethernet/intel/ixgbe/ixgbe_common.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/drivers/net/ethernet/intel/ixgbe/ixgbe_common.c b/drivers/net/ethernet/intel/ixgbe/ixgbe_common.c
index 0bd1294ba517..2d896d663e3d 100644
--- a/drivers/net/ethernet/intel/ixgbe/ixgbe_common.c
+++ b/drivers/net/ethernet/intel/ixgbe/ixgbe_common.c
@@ -64,8 +64,7 @@ bool ixgbe_device_supports_autoneg_fc(struct ixgbe_hw *hw)
hw->mac.ops.check_link(hw, &speed, &link_up, false);
/* if link is down, assume supported */
if (link_up)
- supported = speed == IXGBE_LINK_SPEED_1GB_FULL ?
- true : false;
+ supported = speed == IXGBE_LINK_SPEED_1GB_FULL;
else
supported = true;
}
--
2.17.1
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [PATCH 10/10] ath5k: Remove unneeded conversions to bool
2019-10-16 18:19 [PATCH 04/10] atl1c: remove unneeded conversions to bool Andrew F. Davis
` (4 preceding siblings ...)
2019-10-16 18:19 ` [PATCH 09/10] ixgbe: " Andrew F. Davis
@ 2019-10-16 18:19 ` Andrew F. Davis
5 siblings, 0 replies; 7+ messages in thread
From: Andrew F. Davis @ 2019-10-16 18:19 UTC (permalink / raw)
To: Jiri Kosina; +Cc: kernel-janitors, linux-kernel, Andrew F . Davis
Found with scripts/coccinelle/misc/boolconv.cocci.
Signed-off-by: Andrew F. Davis <afd@ti.com>
---
drivers/net/wireless/ath/ath5k/ani.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/wireless/ath/ath5k/ani.c b/drivers/net/wireless/ath/ath5k/ani.c
index 0624333f5430..850c608b43a3 100644
--- a/drivers/net/wireless/ath/ath5k/ani.c
+++ b/drivers/net/wireless/ath/ath5k/ani.c
@@ -501,7 +501,7 @@ ath5k_ani_calibration(struct ath5k_hw *ah)
if (as->ofdm_errors > ofdm_high || as->cck_errors > cck_high) {
/* too many PHY errors - we have to raise immunity */
- bool ofdm_flag = as->ofdm_errors > ofdm_high ? true : false;
+ bool ofdm_flag = as->ofdm_errors > ofdm_high;
ath5k_ani_raise_immunity(ah, as, ofdm_flag);
ath5k_ani_period_restart(as);
--
2.17.1
^ permalink raw reply related [flat|nested] 7+ messages in thread
end of thread, other threads:[~2019-10-16 18:20 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-10-16 18:19 [PATCH 04/10] atl1c: remove unneeded conversions to bool Andrew F. Davis
2019-10-16 18:19 ` [PATCH 05/10] mlxsw: Remove " Andrew F. Davis
2019-10-16 18:19 ` [PATCH 06/10] thermal: devfreq_cooling: " Andrew F. Davis
2019-10-16 18:19 ` [PATCH 07/10] [SCSI] Buslogic: " Andrew F. Davis
2019-10-16 18:19 ` [PATCH 08/10] i40e: " Andrew F. Davis
2019-10-16 18:19 ` [PATCH 09/10] ixgbe: " Andrew F. Davis
2019-10-16 18:19 ` [PATCH 10/10] ath5k: " Andrew F. Davis
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).