mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [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	[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

Powered by JetHome