]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
thermal: testing: Simplify tt_get_tt_zone()
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Sun, 10 Nov 2024 13:04:47 +0000 (14:04 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 12 Nov 2024 20:47:18 +0000 (21:47 +0100)
commit9782dd101f343d7f1cad824dc26ad355341e1f3b
treecba28c740f4bd16cbcebb0b03d314804b2e2c047
parentc285b11e289dbe8973735ab8dc84210bde417673
thermal: testing: Simplify tt_get_tt_zone()

Notice that tt_get_tt_zone() need not use the ret variable in
the tt_thermal_zones list walk and make it return right after
incrementing the reference counter of the matching entry.

No functional impact.

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