summaryrefslogtreecommitdiff
path: root/sys/dev/acpi/acpithinkpad.c
diff options
context:
space:
mode:
authorConstantine A. Murenin <cnst@cvs.openbsd.org>2009-04-26 02:20:59 +0000
committerConstantine A. Murenin <cnst@cvs.openbsd.org>2009-04-26 02:20:59 +0000
commitd344f77a9af3c3c22eb56bc584b6c9aaf65c605c (patch)
tree84ab585bb039ea99486cbd37458c0cb00de6cd95 /sys/dev/acpi/acpithinkpad.c
parent38575b1fbbb6e32a06e3a20a41031ba6500b0e61 (diff)
in ca_attach() there is no need to set .value and .flags of sensors to 0,
since autoconf(9) allocates softc with M_ZERO; ok deraadt
Diffstat (limited to 'sys/dev/acpi/acpithinkpad.c')
-rw-r--r--sys/dev/acpi/acpithinkpad.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/sys/dev/acpi/acpithinkpad.c b/sys/dev/acpi/acpithinkpad.c
index 76b8c5df006..346e2507990 100644
--- a/sys/dev/acpi/acpithinkpad.c
+++ b/sys/dev/acpi/acpithinkpad.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: acpithinkpad.c,v 1.18 2009/03/11 20:52:11 jordan Exp $ */
+/* $OpenBSD: acpithinkpad.c,v 1.19 2009/04/26 02:20:58 cnst Exp $ */
/*
* Copyright (c) 2008 joshua stein <jcs@openbsd.org>
*
@@ -157,7 +157,6 @@ thinkpad_sensor_attach(struct acpithinkpad_softc *sc)
snprintf(sc->sc_sens[i].desc, sizeof(sc->sc_sens[i].desc),
"TMP%d", i);
sc->sc_sens[i].type = SENSOR_TEMP;
- sc->sc_sens[i].value = 0;
sensor_attach(&sc->sc_sensdev, &sc->sc_sens[i]);
}
@@ -165,7 +164,6 @@ thinkpad_sensor_attach(struct acpithinkpad_softc *sc)
strlcpy(sc->sc_sens[i].desc, "fan",
sizeof(sc->sc_sens[i].desc));
sc->sc_sens[i].type = SENSOR_FANRPM;
- sc->sc_sens[i].value = 0;
sensor_attach(&sc->sc_sensdev, &sc->sc_sens[i]);
sensordev_install(&sc->sc_sensdev);