diff options
author | njl <njl@FreeBSD.org> | 2004-04-12 05:04:47 +0000 |
---|---|---|
committer | njl <njl@FreeBSD.org> | 2004-04-12 05:04:47 +0000 |
commit | a9c2757cc6ca1a1e206270893df08349ce3bcacc (patch) | |
tree | 539bf2c419d3e148ea973429fa6256c3d34b74ab /sys | |
parent | 36888394534337e4654d9eaf2978cd46ad5c6829 (diff) | |
download | FreeBSD-src-a9c2757cc6ca1a1e206270893df08349ce3bcacc.zip FreeBSD-src-a9c2757cc6ca1a1e206270893df08349ce3bcacc.tar.gz |
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.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/acpica/acpi_thermal.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/sys/dev/acpica/acpi_thermal.c b/sys/dev/acpica/acpi_thermal.c index 9b7ad0c..27f46de 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; } |