mb/*/*: Clean up FADT checksum assignment

The assignment of header->checksum was in some cases done twice, or
unnecessarily split into two lines.

Change-Id: Ib0c0890d7589e6a24b11e9bda10e6969c7d73c56
Signed-off-by: Jonathan Neuschäfer <j.neuschaefer@gmx.net>
Reviewed-on: https://review.coreboot.org/28988
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Marc Jones <marc@marcjonesconsulting.com>
This commit is contained in:
Jonathan Neuschäfer
2018-10-10 14:22:48 +02:00
committed by Patrick Georgi
parent 9814f8f037
commit e1de6482d0
27 changed files with 26 additions and 70 deletions

View File

@ -170,8 +170,7 @@ void acpi_create_fadt(acpi_fadt_t * fadt, acpi_facs_t * facs, void *dsdt)
fadt->x_gpe1_blk.addrl = 0x0;
fadt->x_gpe1_blk.addrh = 0x0;
header->checksum =
acpi_checksum((void *) fadt, header->length);
header->checksum = acpi_checksum((void *) fadt, header->length);
}
unsigned long acpi_fill_madt(unsigned long current)