Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d7ac12fa authored by Harvey Harrison's avatar Harvey Harrison Committed by Ingo Molnar
Browse files

x86: fix sparse warnings in powernow-k8.c



arch/x86/kernel/cpu/cpufreq/powernow-k8.c:830:7: warning: symbol 'hi' shadows an earlier one
arch/x86/kernel/cpu/cpufreq/powernow-k8.c:824:6: originally declared here
arch/x86/kernel/cpu/cpufreq/powernow-k8.c:830:15: warning: symbol 'lo' shadows an earlier one
arch/x86/kernel/cpu/cpufreq/powernow-k8.c:824:14: originally declared here

Signed-off-by: default avatarHarvey Harrison <harvey.harrison@gmail.com>
Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
parent deef79ef
Loading
Loading
Loading
Loading
+0 −1
Original line number Original line Diff line number Diff line
@@ -827,7 +827,6 @@ static int fill_powernow_table_pstate(struct powernow_k8_data *data, struct cpuf


	for (i = 0; i < data->acpi_data.state_count; i++) {
	for (i = 0; i < data->acpi_data.state_count; i++) {
		u32 index;
		u32 index;
		u32 hi = 0, lo = 0;


		index = data->acpi_data.states[i].control & HW_PSTATE_MASK;
		index = data->acpi_data.states[i].control & HW_PSTATE_MASK;
		if (index > data->max_hw_pstate) {
		if (index > data->max_hw_pstate) {