Fix a compare against undefined variable in acpi.c

Initialize the pointer fadt to NULL to prevent a later comparison
(if (fadt == NULL)) when the pointer had the *possibility* of never
having been initialized.

Change-Id: Ib2a544c190b609ab8c23147dc69dca5f4ac7f38c
Signed-off-by: Martin Roth <martin@se-eng.com>
Reviewed-on: http://review.coreboot.org/2037
Reviewed-by: Peter Stuge <peter@stuge.se>
Tested-by: build bot (Jenkins)
This commit is contained in:
Martin Roth 2012-12-14 19:17:55 -07:00 committed by Peter Stuge
parent 9f04317263
commit c5f4926cb9
1 changed files with 1 additions and 1 deletions

View File

@ -687,7 +687,7 @@ void *acpi_find_wakeup_vector(void)
char *p, *end;
acpi_rsdt_t *rsdt;
acpi_facs_t *facs;
acpi_fadt_t *fadt;
acpi_fadt_t *fadt = NULL;
void *wake_vec;
int i;