cpufreq: Remove the unused variables
PATCH 1/1 cpufreq: Remove the unused variables
The function using variable 'acpi_cpufreq_online' has been deleted, so it is redundant. Similarly, variable 'ret' assigned to acpi_cpufreq_online is redundant, and 'ret' is not initialized, because its assignment statement has also been eliminated.
Remove the unused variables to silence this warning:drivers/cpufreq/acpi-cpufreq.c:960:9: note: initialize the variable 'ret' to silence this warning
Fixes 13fdbc8b8da6 ("cpufreq: ACPI: Defer setting boost MSRs")
Reported-by Abaci Robot <[email protected]>
Signed-off-by Yang Li <[email protected]>
--- drivers/cpufreq/acpi-cpufreq.c | 6 ------ 1 file changed, 6 deletions(-)
drivers/cpufreq/acpi-cpufreq.c +0 -6
@@ -953,12 +953,8 @@ static struct cpufreq_driver acpi_cpufreq_driver = { .attr = acpi_cpufreq_attr, }; -static enum cpuhp_state acpi_cpufreq_online; -static void __init acpi_cpufreq_boost_init (void ) { -int ret; -if (!(boot_cpu_has (X86_FEATURE_CPB ) ||boot_cpu_has (X86_FEATURE_IDA ))) {pr_debug ("Boost capabilities not present in the processor\n" );return ;
@@ -966,8 +962,6 @@ static void __init acpi_cpufreq_boost_init(void) acpi_cpufreq_driver.set_boost = set_boost; acpi_cpufreq_driver.boost_enabled =boost_state (0 ); - - acpi_cpufreq_online = ret; }static int __init acpi_cpufreq_init (void )
Signature · 1 line
2.20.1.7.g153144c