Skip to contentSkip to conversation

thermal: devfreq_cooling: Remove unneeded conversions to bool

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

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

PATCH 10/14 thermal: devfreq_cooling: Remove unneeded conversions to bool

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

---
 drivers/thermal/devfreq_cooling.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/thermal/devfreq_cooling.c +1 -1
index 7743a78d4723..b72e2ccc8e40 100644
@@ -75,7 +75,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);
 
Signature · 1 line
2.11.0