summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorElyes Haouas <ehaouas@noos.fr>2022-09-11 12:18:46 +0200
committerFelix Held <felix-coreboot@felixheld.de>2022-09-12 15:31:37 +0000
commitf25c11236a68f4e850f1855e84de1d3c8ef872b7 (patch)
treee3e865fe7e7fa27ee4f20d6254d456f66c7a5bf0 /tests
parentb40e185b9ca5325d218fe548b7266dab41165d1d (diff)
downloadcoreboot-f25c11236a68f4e850f1855e84de1d3c8ef872b7.tar.gz
coreboot-f25c11236a68f4e850f1855e84de1d3c8ef872b7.tar.bz2
coreboot-f25c11236a68f4e850f1855e84de1d3c8ef872b7.zip
tests/lib/coreboot_table-test.c: Use ALIGN_UP macro
Signed-off-by: Elyes Haouas <ehaouas@noos.fr> Change-Id: Ie0d4788c0a4ffee2f16bcf05e3454dbaeaa1606b Reviewed-on: https://review.coreboot.org/c/coreboot/+/67518 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Jakub Czapiga <jacz@semihalf.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/lib/coreboot_table-test.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/lib/coreboot_table-test.c b/tests/lib/coreboot_table-test.c
index 2bf1f61da024..20438efa7495 100644
--- a/tests/lib/coreboot_table-test.c
+++ b/tests/lib/coreboot_table-test.c
@@ -20,8 +20,7 @@ static struct lb_header *lb_table_init(unsigned long addr)
struct lb_header *header;
/* 16 byte align the address */
- addr += 15;
- addr &= ~15;
+ addr = ALIGN_UP(addr, 16);
header = (void *)addr;
header->signature[0] = 'L';