Revert "ACPICA: check null return of ACPI_ALLOCATE_ZEROED() in acpi_db_convert_to_package()"
This reverts commit a4416212c2
.
This commit is contained in:
parent
a3f4468004
commit
fc35ed830a
1 changed files with 0 additions and 2 deletions
|
@ -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++) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue