diff options
| -rw-r--r-- | sys/dev/acpica/acpi_spmc.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/sys/dev/acpica/acpi_spmc.c b/sys/dev/acpica/acpi_spmc.c index fde803bdd15d..95d802f7688d 100644 --- a/sys/dev/acpica/acpi_spmc.c +++ b/sys/dev/acpica/acpi_spmc.c @@ -508,10 +508,6 @@ acpi_spmc_parse_constraints_intel(struct acpi_spmc_softc *sc, ACPI_OBJECT *objec name_obj = &constraint_obj->Package.Elements[0]; constraint->name = strdup(name_obj->String.Pointer, M_TEMP); - if (constraint->name == NULL) { - acpi_spmc_free_constraints(sc); - return (ENOMEM); - } detail = &constraint_obj->Package.Elements[2]; /* @@ -582,10 +578,6 @@ acpi_spmc_parse_constraints_amd(struct acpi_spmc_softc *sc, ACPI_OBJECT *object) name_obj = &constraint_obj->Package.Elements[1]; constraint->name = strdup(name_obj->String.Pointer, M_TEMP); - if (constraint->name == NULL) { - acpi_spmc_free_constraints(sc); - return (ENOMEM); - } constraint->function_states = constraint_obj->Package.Elements[2].Integer.Value; |
