summaryrefslogtreecommitdiff
path: root/src/mainboard/adi
diff options
context:
space:
mode:
authorJonathan Neuschäfer <j.neuschaefer@gmx.net>2018-10-10 14:22:48 +0200
committerPatrick Georgi <pgeorgi@google.com>2018-10-17 12:01:06 +0000
commite1de6482d05509f8109c97ff2cd4270dddde1012 (patch)
tree7ebd1ad67f47be694a48e1fece360bc076c557fa /src/mainboard/adi
parent9814f8f037d4735f2f45b586c20573238d659b31 (diff)
downloadcoreboot-e1de6482d05509f8109c97ff2cd4270dddde1012.tar.xz
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>
Diffstat (limited to 'src/mainboard/adi')
-rw-r--r--src/mainboard/adi/rcc-dff/fadt.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/mainboard/adi/rcc-dff/fadt.c b/src/mainboard/adi/rcc-dff/fadt.c
index 83adf8524d..cc88e58351 100644
--- a/src/mainboard/adi/rcc-dff/fadt.c
+++ b/src/mainboard/adi/rcc-dff/fadt.c
@@ -30,9 +30,7 @@ void acpi_create_fadt(acpi_fadt_t * fadt, acpi_facs_t * facs, void *dsdt)
#if PLATFORM_HAS_FADT_CUSTOMIZATIONS
- header->checksum = 0;
- header->checksum =
- acpi_checksum((void *) fadt, sizeof(acpi_fadt_t));
+ header->checksum = acpi_checksum((void *) fadt, sizeof(acpi_fadt_t));
#endif
}