From e1de6482d05509f8109c97ff2cd4270dddde1012 Mon Sep 17 00:00:00 2001 From: Jonathan Neuschäfer Date: Wed, 10 Oct 2018 14:22:48 +0200 Subject: mb/*/*: Clean up FADT checksum assignment MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Reviewed-on: https://review.coreboot.org/28988 Tested-by: build bot (Jenkins) Reviewed-by: Marc Jones --- src/mainboard/google/slippy/fadt.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/mainboard/google/slippy') diff --git a/src/mainboard/google/slippy/fadt.c b/src/mainboard/google/slippy/fadt.c index 8a04591a47..52a099f5f9 100644 --- a/src/mainboard/google/slippy/fadt.c +++ b/src/mainboard/google/slippy/fadt.c @@ -147,6 +147,5 @@ 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); } -- cgit v1.2.3