thermal: gov_power_allocator: Remove excessive local variables
authorLukasz Luba <lukasz.luba@arm.com>
Wed, 25 Oct 2023 19:22:24 +0000 (20:22 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 28 Nov 2023 15:02:14 +0000 (16:02 +0100)
commit0458d536ae97c5107b81810778d050da04d83fa2
tree972fa1576cbd209cd492a4749924587f9c11d653
parent30e1178c100df8c8560f4d338fdb6f4fcd27e676
thermal: gov_power_allocator: Remove excessive local variables

Local variable 'ret' in allocate_power() is only used in the return
statement, so drop it.

Local variable 'trip_max' in allocate_power() is only used for caching
the params->trip_max value which may as well be accessed directly as
needed, so drop it either.

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