]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
thermal: core: Drop redundant thermal instance checks
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 19 Aug 2024 15:52:54 +0000 (17:52 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 22 Aug 2024 15:43:14 +0000 (17:43 +0200)
commiteb3591cde1aee34c56b5dc96d9b247349827024f
tree37c14e1e206d3ee73be6d229f46f6cf267a74503
parentb4e6d39817312919f907da266de202a30a7bc43b
thermal: core: Drop redundant thermal instance checks

Because the trip and cdev pointers are sufficient to identify a thermal
instance holding them unambiguously, drop the additional thermal zone
checks from two loops walking the list of thermal instances in a
thermal zone.

No intentional functional impact.

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Reviewed-by: Zhang Rui <rui.zhang@intel.com>
Reviewed-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Link: https://patch.msgid.link/10527734.nUPlyArG6x@rjwysocki.net
drivers/thermal/thermal_core.c