diff mbox

[1/1] acpi: Fix warning: 'num_cpus' may be used uninitialized in this function

Message ID 20100911062437.GA18711@mail.gmail.com (mailing list archive)
State New, archived
Headers show

Commit Message

Jεan Sacren Sept. 11, 2010, 6:24 a.m. UTC
None
diff mbox

Patch

diff --git a/drivers/acpi/acpi_pad.c b/drivers/acpi/acpi_pad.c
index b76848c..6154f2b 100644
--- a/drivers/acpi/acpi_pad.c
+++ b/drivers/acpi/acpi_pad.c
@@ -429,7 +429,7 @@  static void acpi_pad_ost(acpi_handle handle, int stat,
 
 static void acpi_pad_handle_notify(acpi_handle handle)
 {
-	int num_cpus;
+	int num_cpus = 0;
 	uint32_t idle_cpus;
 
 	mutex_lock(&isolated_cpus_lock);