summaryrefslogtreecommitdiffstats
path: root/sys/dev/acpica/acpi_thermal.c
diff options
context:
space:
mode:
authornjl <njl@FreeBSD.org>2004-04-12 05:04:47 +0000
committernjl <njl@FreeBSD.org>2004-04-12 05:04:47 +0000
commita9c2757cc6ca1a1e206270893df08349ce3bcacc (patch)
tree539bf2c419d3e148ea973429fa6256c3d34b74ab /sys/dev/acpica/acpi_thermal.c
parent36888394534337e4654d9eaf2978cd46ad5c6829 (diff)
downloadFreeBSD-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/dev/acpica/acpi_thermal.c')
-rw-r--r--sys/dev/acpica/acpi_thermal.c9
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;
}
OpenPOWER on IntegriCloud