]> www.infradead.org Git - users/jedix/linux-maple.git/commit
thermal: gov_bang_bang: Drop unnecessary cooling device target state checks
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 28 May 2024 16:54:01 +0000 (18:54 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 11 Jun 2024 19:06:44 +0000 (21:06 +0200)
commit2c637af8a74d9a2a52ee5456a75dd29c8cb52da5
tree5e238d0b6fb705426c654aa3af4993e85fdcd80e
parenta52641bc6293a24f25956a597e7f32148b0e2bb8
thermal: gov_bang_bang: Drop unnecessary cooling device target state checks

Some cooling device target state checks in bang_bang_control()
done before setting the new target state are not necessary after
recent changes, so drop them.

Also avoid updating the target state before checking it for
unexpected values.

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/thermal/gov_bang_bang.c