Re: [PATCH 1/2] selftests/cpufreq: Remove unused local variables from switch_show_governor()
From: Rafael J. Wysocki (Intel)
Date: Wed Jul 22 2026 - 15:53:24 EST
On Tue, Jul 7, 2026 at 7:10 AM Viresh Kumar <viresh.kumar@xxxxxxxxxx> wrote:
>
> 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>
Applied as 7.3 material along with the [2/2], thanks!