thermal: devfreq_cooling: Remove unneeded conversions to bool
Subsystems (2)
PATCH 10/14 thermal: devfreq_cooling: Remove unneeded conversions to bool
Found with scripts/coccinelle/misc/boolconv.cocci.
Signed-off-by Andrew F. Davis <[email protected]>
--- drivers/thermal/devfreq_cooling.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/thermal/devfreq_cooling.c +1 -1
@@ -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