diff options
author | Jonathan Neuschäfer <j.neuschaefer@gmx.net> | 2018-10-10 14:22:48 +0200 |
---|---|---|
committer | Patrick Georgi <pgeorgi@google.com> | 2018-10-17 12:01:06 +0000 |
commit | e1de6482d05509f8109c97ff2cd4270dddde1012 (patch) | |
tree | 7ebd1ad67f47be694a48e1fece360bc076c557fa /src/mainboard/siemens | |
parent | 9814f8f037d4735f2f45b586c20573238d659b31 (diff) | |
download | coreboot-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/siemens')
-rw-r--r-- | src/mainboard/siemens/mc_bdx1/fadt.c | 4 | ||||
-rw-r--r-- | src/mainboard/siemens/mc_tcu3/fadt.c | 4 |
2 files changed, 2 insertions, 6 deletions
diff --git a/src/mainboard/siemens/mc_bdx1/fadt.c b/src/mainboard/siemens/mc_bdx1/fadt.c index b274531ca6..5af6056b49 100644 --- a/src/mainboard/siemens/mc_bdx1/fadt.c +++ b/src/mainboard/siemens/mc_bdx1/fadt.c @@ -23,7 +23,5 @@ void acpi_create_fadt(acpi_fadt_t *fadt, acpi_facs_t *facs, void *dsdt) /* Platform specific customizations go here */ - header->checksum = 0; - header->checksum = - acpi_checksum((void *) fadt, sizeof(acpi_fadt_t)); + header->checksum = acpi_checksum((void *) fadt, sizeof(acpi_fadt_t)); } diff --git a/src/mainboard/siemens/mc_tcu3/fadt.c b/src/mainboard/siemens/mc_tcu3/fadt.c index 8e8de51668..8fee54b63e 100644 --- a/src/mainboard/siemens/mc_tcu3/fadt.c +++ b/src/mainboard/siemens/mc_tcu3/fadt.c @@ -25,7 +25,5 @@ void acpi_create_fadt(acpi_fadt_t * fadt, acpi_facs_t * facs, void *dsdt) /* Platform specific customizations go here */ - header->checksum = 0; - header->checksum = - acpi_checksum((void *) fadt, sizeof(acpi_fadt_t)); + header->checksum = acpi_checksum((void *) fadt, sizeof(acpi_fadt_t)); } |