]> www.infradead.org Git - users/dwmw2/linux.git/commit
thermal: gov_power_allocator: Use shorter paths to access data when possible
authorLukasz Luba <lukasz.luba@arm.com>
Wed, 25 Oct 2023 19:22:23 +0000 (20:22 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 28 Nov 2023 15:02:14 +0000 (16:02 +0100)
commit30e1178c100df8c8560f4d338fdb6f4fcd27e676
tree8cb50794cf104ed5fb5a7461b2ef3dc9889a205c
parent499cc391b41c8ccf5f5eae4c85e1725a037f138f
thermal: gov_power_allocator: Use shorter paths to access data when possible

The 'cdev' pointer in allow_maximum_power() is valid, so there is no
need to use 'instance->cdev' instead of it.

This change is not expected to alter the general functionality.

Signed-off-by: Lukasz Luba <lukasz.luba@arm.com>
[ rjw: Subject and changelog edits ]
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/thermal/gov_power_allocator.c