Skip to contentSkip to conversation

atl1c: remove unneeded conversions to bool

PATCH New Andrew F. Davis 1 participant 1 message Mar 15, 2017

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 8/14 atl1c: remove unneeded conversions to bool

Found with scripts/coccinelle/misc/boolconv.cocci.

---
 drivers/net/ethernet/atheros/atl1c/atl1c_main.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/ethernet/atheros/atl1c/atl1c_main.c +1 -1
index 7e913d8331c3..5c507b87bc2e 100644
@@ -1201,7 +1201,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;
 
Signature · 1 line
2.11.0