aboutsummaryrefslogtreecommitdiff
path: root/scripts/generate_rust_analyzer.py
diff options
context:
space:
mode:
authorLukasz Luba <[email protected]>2023-10-25 20:22:24 +0100
committerRafael J. Wysocki <[email protected]>2023-11-28 16:02:14 +0100
commit0458d536ae97c5107b81810778d050da04d83fa2 (patch)
tree972fa1576cbd209cd492a4749924587f9c11d653 /scripts/generate_rust_analyzer.py
parent30e1178c100df8c8560f4d338fdb6f4fcd27e676 (diff)
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 <[email protected]> [ rjw: Subject and changelog edits ] Signed-off-by: Rafael J. Wysocki <[email protected]>
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions