diff options
author | Constantine A. Murenin <cnst@cvs.openbsd.org> | 2009-04-26 02:20:59 +0000 |
---|---|---|
committer | Constantine A. Murenin <cnst@cvs.openbsd.org> | 2009-04-26 02:20:59 +0000 |
commit | d344f77a9af3c3c22eb56bc584b6c9aaf65c605c (patch) | |
tree | 84ab585bb039ea99486cbd37458c0cb00de6cd95 /sys/dev/acpi/acpitz.c | |
parent | 38575b1fbbb6e32a06e3a20a41031ba6500b0e61 (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/acpitz.c')
-rw-r--r-- | sys/dev/acpi/acpitz.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/dev/acpi/acpitz.c b/sys/dev/acpi/acpitz.c index 91eb0bde3e3..8039e6b85be 100644 --- a/sys/dev/acpi/acpitz.c +++ b/sys/dev/acpi/acpitz.c @@ -1,4 +1,4 @@ -/* $OpenBSD: acpitz.c,v 1.30 2009/04/19 21:50:02 cnst Exp $ */ +/* $OpenBSD: acpitz.c,v 1.31 2009/04/26 02:20:58 cnst Exp $ */ /* * Copyright (c) 2006 Can Erkin Acar <canacar@openbsd.org> * Copyright (c) 2005 Marco Peereboom <marco@openbsd.org> @@ -142,7 +142,6 @@ acpitz_attach(struct device *parent, struct device *self, void *aux) sc->sc_sens.type = SENSOR_TEMP; sensor_attach(&sc->sc_sensdev, &sc->sc_sens); sensordev_install(&sc->sc_sensdev); - sc->sc_sens.value = 0; aml_register_notify(sc->sc_devnode, NULL, acpitz_notify, sc, ACPIDEV_POLL); |