Revert "ACPICA: check null return of ACPI_ALLOCATE_ZEROED() in acpi_db_convert_to_package()"

This reverts commit a4416212c2.
This commit is contained in:
Ksawlii 2024-11-24 00:23:09 +01:00
parent a3f4468004
commit fc35ed830a

View file

@ -174,8 +174,6 @@ acpi_status acpi_db_convert_to_package(char *string, union acpi_object *object)
elements = elements =
ACPI_ALLOCATE_ZEROED(DB_DEFAULT_PKG_ELEMENTS * ACPI_ALLOCATE_ZEROED(DB_DEFAULT_PKG_ELEMENTS *
sizeof(union acpi_object)); sizeof(union acpi_object));
if (!elements)
return (AE_NO_MEMORY);
this = string; this = string;
for (i = 0; i < (DB_DEFAULT_PKG_ELEMENTS - 1); i++) { for (i = 0; i < (DB_DEFAULT_PKG_ELEMENTS - 1); i++) {