ACPI: kill "unused variable ‘i’" warning

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Linux Kernel Mailing List
Date: Sunday, September 27, 2009 - 12:59 pm

Gitweb:     http://git.kernel.org/linus/569ec4cc779c8aae03a4659939d08822c9e4a242
Commit:     569ec4cc779c8aae03a4659939d08822c9e4a242
Parent:     f0f37e2f77731b3473fa6bd5ee53255d9a9cdb40
Author:     Linus Torvalds <torvalds@linux-foundation.org>
AuthorDate: Sun Sep 27 11:58:36 2009 -0700
Committer:  Linus Torvalds <torvalds@linux-foundation.org>
CommitDate: Sun Sep 27 11:58:36 2009 -0700

    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>
---
 drivers/acpi/processor_idle.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)

diff --git a/drivers/acpi/processor_idle.c b/drivers/acpi/processor_idle.c
index 706eacf..bbd066e 100644
--- a/drivers/acpi/processor_idle.c
+++ b/drivers/acpi/processor_idle.c
@@ -1166,7 +1166,6 @@ int __cpuinit acpi_processor_power_init(struct acpi_processor *pr,
 #ifdef CONFIG_ACPI_PROCFS
 	struct proc_dir_entry *entry = NULL;
 #endif
-	unsigned int i;
 
 	if (boot_option_idle_override)
 		return 0;
--
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
ACPI: kill "unused variable ‘i’" warning, Linux Kernel Mailing ..., (Sun Sep 27, 12:59 pm)