]> www.infradead.org Git - users/jedix/linux-maple.git/commit
thermal: core: Drop redundant lockdep_assert_held()
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 26 Aug 2024 16:30:42 +0000 (18:30 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 5 Sep 2024 10:33:15 +0000 (12:33 +0200)
commit49029b507e3ad9de35faca497c7bde0e83fcc036
treee89134cf3cda8ebcea378d4cffc8f8ae5e676ac4
parent15cb56bd529868d9242b22812fc69bd144bfdc94
thermal: core: Drop redundant lockdep_assert_held()

Along the lines of commit 24aad192c671 ("thermal: core: Drop
redundant checks from thermal_bind_cdev_to_trip()") notice that
thermal_unbind_cdev_from_trip() is only called by
thermal_zone_cdev_unbind() under the thermal zone lock, so it
need not use lockdep_assert_held() for that lock.

No functional impact.

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Link: https://patch.msgid.link/3341369.44csPzL39Z@rjwysocki.net
drivers/thermal/thermal_core.c