thermal: gov_step_wise: Simplify get_target_state()
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 3 Apr 2024 18:11:10 +0000 (20:11 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 8 Apr 2024 13:57:50 +0000 (15:57 +0200)
commitf1164d333cc3c063cfdf7d03ddbca4f93a5a5c41
tree0feb230b661c2663f27ff6a4173ba1edef3f72f2
parentfec50db7033ea478773b159e0e2efb135270e3b7
thermal: gov_step_wise: Simplify get_target_state()

The step-wise governor's get_target_state() function contains redundant
braces, redundant parens and a redundant next_target local variable, so
get rid of all that stuff.

No intentional functional impact.

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Reviewed-by: Lukasz Luba <lukasz.luba@arm.com>
drivers/thermal/gov_step_wise.c