Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

ACPI: kill "unused variable ‘i’" warning

Commit 3d5b6fb47a8e68fa311ca2c3447e7f8a7c3a9cf3 ("ACPI: Kill overly
verbose "power state" log messages") removed the actual use of this
variable, but didn't remove the variable itself, resulting in build
warnings like

drivers/acpi/processor_idle.c: In function ‘acpi_processor_power_init’:
drivers/acpi/processor_idle.c:1169: warning: unused variable ‘i’

Just get rid of the now unused variable.

Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

-1
-1
drivers/acpi/processor_idle.c
··· 1166 1166 #ifdef CONFIG_ACPI_PROCFS 1167 1167 struct proc_dir_entry *entry = NULL; 1168 1168 #endif 1169 - unsigned int i; 1170 1169 1171 1170 if (boot_option_idle_override) 1172 1171 return 0;