From a9c2757cc6ca1a1e206270893df08349ce3bcacc Mon Sep 17 00:00:00 2001 From: njl Date: Mon, 12 Apr 2004 05:04:47 +0000 Subject: [PATCH] Remove a check for the return value added in rev 1.41. It's not an error to fail to turn off a fan, since the case is that it's usually already off. --- sys/dev/acpica/acpi_thermal.c | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/sys/dev/acpica/acpi_thermal.c b/sys/dev/acpica/acpi_thermal.c index 9b7ad0cd33ff..27f46de094cf 100644 --- a/sys/dev/acpica/acpi_thermal.c +++ b/sys/dev/acpica/acpi_thermal.c @@ -551,9 +551,7 @@ acpi_tz_all_off(struct acpi_tz_softc *sc) static void acpi_tz_switch_cooler_off(ACPI_OBJECT *obj, void *arg) { - struct acpi_tz_softc *sc = (struct acpi_tz_softc *)arg; ACPI_HANDLE cooler; - ACPI_STATUS status; ACPI_FUNCTION_TRACE((char *)(uintptr_t)__func__); @@ -567,12 +565,7 @@ acpi_tz_switch_cooler_off(ACPI_OBJECT *obj, void *arg) ACPI_DEBUG_PRINT((ACPI_DB_OBJECTS, "called to turn %s off\n", acpi_name(cooler))); - status = acpi_pwr_switch_consumer(cooler, ACPI_STATE_D3); - if (ACPI_FAILURE(status)) { - ACPI_VPRINT(sc->tz_dev, acpi_device_get_parent_softc(sc->tz_dev), - "failed to deactivate %s - %s\n", acpi_name(cooler), - AcpiFormatException(status)); - } + acpi_pwr_switch_consumer(cooler, ACPI_STATE_D3); return_VOID; }