ACPI: suppress uninitialized var warning
authorAndrew Morton <akpm@linux-foundation.org>
Tue, 2 Oct 2007 20:24:10 +0000 (13:24 -0700)
committerLen Brown <len.brown@intel.com>
Wed, 10 Oct 2007 04:18:31 +0000 (00:18 -0400)
drivers/acpi/tables/tbutils.c: In function `acpi_tb_parse_root_table':
drivers/acpi/tables/tbutils.c:403: warning: `rsdt_address' may be used uninitialized in this function

Reported-by: Uwe Bugla <uwe.bugla@gmx.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Len Brown <len.brown@intel.com>
drivers/acpi/tables/tbutils.c

index 8cc9492..5f1d85f 100644 (file)
@@ -400,7 +400,7 @@ acpi_tb_parse_root_table(acpi_physical_address rsdp_address, u8 flags)
        u32 table_count;
        struct acpi_table_header *table;
        acpi_physical_address address;
-       acpi_physical_address rsdt_address;
+       acpi_physical_address uninitialized_var(rsdt_address);
        u32 length;
        u8 *table_entry;
        acpi_status status;