From 09b7dc51ced9e8d5d678d5824f42e76eef9da012 Mon Sep 17 00:00:00 2001 From: Felix Held Date: Mon, 13 Nov 2023 16:59:51 +0100 Subject: [PATCH] acpi/acpigen: drop len assert in acpigen_pop_len This is already handled as a separate case in the code below, so there's no need for this assert any more. Signed-off-by: Felix Held Change-Id: I7511ec5683a924dc289faa2b9fabd0e8714d291e Reviewed-on: https://review.coreboot.org/c/coreboot/+/79047 Tested-by: build bot (Jenkins) Reviewed-by: Matt DeVillier Reviewed-by: Nico Huber --- src/acpi/acpigen.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/acpi/acpigen.c b/src/acpi/acpigen.c index 7479dce7fe..fe36113fd7 100644 --- a/src/acpi/acpigen.c +++ b/src/acpi/acpigen.c @@ -5,7 +5,6 @@ /* If you need to change this, change acpigen_pop_len too */ #define ACPIGEN_RSVD_PKGLEN_BYTES 3 -#define ACPIGEN_MAXLEN 0xfffff #include #include @@ -38,7 +37,6 @@ void acpigen_pop_len(void) ASSERT(ltop > 0) char *p = len_stack[--ltop]; len = gencurrent - p; - ASSERT(len <= ACPIGEN_MAXLEN) const size_t payload_len = len - ACPIGEN_RSVD_PKGLEN_BYTES; if (len <= 0x3f + 2) {