summaryrefslogtreecommitdiffstats
path: root/tests/lib/coreboot_table-test.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/lib/coreboot_table-test.c')
-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';