]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
thermal/core: Remove pointless variable when registering a cooling device
authorDaniel Lezcano <daniel.lezcano@oss.qualcomm.com>
Thu, 2 Apr 2026 08:44:25 +0000 (10:44 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Sat, 4 Apr 2026 13:05:18 +0000 (15:05 +0200)
commit761fdf4c8c1c0bd8427f8226be3a3eb5cf896386
tree9ca33c6c7124fc4c47023bbcf517623bdaddfcc4
parent49c7db1f0b4fbc52435c0f042d95c62a56e9be14
thermal/core: Remove pointless variable when registering a cooling device

The 'id' variable is set to store the ida_alloc() value which is
already stored into cdev->id. It is pointless to use it because
cdev->id can be used instead.

Signed-off-by: Daniel Lezcano <daniel.lezcano@oss.qualcomm.com>
Signed-off-by: Daniel Lezcano <daniel.lezcano@kernel.org>
Reviewed-by: Lukasz Luba <lukasz.luba@arm.com>
Link: https://patch.msgid.link/20260402084426.1360086-1-daniel.lezcano@kernel.org
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/thermal/thermal_core.c