From f509b617b010f67cf2bc47e1eb03dff498980fcc Mon Sep 17 00:00:00 2001 From: Arthur Heymans Date: Tue, 19 Apr 2022 12:05:28 +0200 Subject: [PATCH] lib/coreboot_table.c: Use align macro Change-Id: Ie874fe2c023157fad0adc021faa45e70822208da Signed-off-by: Arthur Heymans Reviewed-on: https://review.coreboot.org/c/coreboot/+/63711 Tested-by: build bot (Jenkins) Reviewed-by: Felix Held --- src/lib/coreboot_table.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/lib/coreboot_table.c b/src/lib/coreboot_table.c index c29d3081b5..698118c75a 100644 --- a/src/lib/coreboot_table.c +++ b/src/lib/coreboot_table.c @@ -37,9 +37,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';