[acpi] Fix spurious uninitialised-variable warning on some gcc versions

Reported-by: Christian Nilsson <nikize@gmail.com>
Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
Michael Brown
2017-07-28 20:19:31 +01:00
parent 041d362423
commit 51a79731f6

View File

@@ -51,7 +51,7 @@ FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );
static uint8_t acpi_checksum ( userptr_t table ) {
struct acpi_header acpi;
uint8_t sum = 0;
uint8_t data;
uint8_t data = 0;
unsigned int i;
/* Read table length */