summaryrefslogtreecommitdiff
path: root/include/linux/debugobjects.h
diff options
context:
space:
mode:
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>2026-04-22 18:37:14 +0300
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2026-05-12 22:45:46 +0300
commit8c5281c91e1f6c719ee6db9e18ef5efb618425e7 (patch)
treeb110991fd665b767abe813a2b8e9b7ec913cc48e /include/linux/debugobjects.h
parent5d6919055dec134de3c40167a490f33c74c12581 (diff)
downloadlinux-8c5281c91e1f6c719ee6db9e18ef5efb618425e7.tar.xz
thermal: core: Remove dead code from two functions
Since thermal_register_governor() is only called by thermal_register_governors() which runs before clearing thermal_class_unavailable, thermal_tz_list is guaranteed to be empty when it runs, so the code walking that list in it is effectively dead. The same observation applies to the code walking thermal_tz_list in thermal_unregister_governor() which is also called only if thermal_class_unavailable hasn't been cleared. Remove the dead code from both functions mentioned above and rearrange thermal_register_governor() to reduce indentation level. No intentional functional impact. Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com> Link: https://patch.msgid.link/3950489.kQq0lBPeGt@rafael.j.wysocki
Diffstat (limited to 'include/linux/debugobjects.h')
0 files changed, 0 insertions, 0 deletions