Re: [PATCH 1/2] selftests/cpufreq: Remove unused local variables from switch_show_governor()

From: Viresh Kumar

Date: Tue Jul 07 2026 - 01:11:26 EST


On 06-07-26, 23:38, Jinseok Kim wrote:
> switch_show_governor() assigns the current governor and frequency
> to local variables before switching governors.
>
> However, these variables are never referenced afterwards. The function
> does not restore the previous governor or use the saved frequency, as
> backup_governor() and restore_governor() already handle state preservation
> elsewhere.
>
> Signed-off-by: Jinseok Kim <always.starving0@xxxxxxxxx>
> ---
> tools/testing/selftests/cpufreq/governor.sh | 5 -----
> 1 file changed, 5 deletions(-)

Acked-by: Viresh Kumar <viresh.kumar@xxxxxxxxxx>

--
viresh