diff options
| author | 2009-04-26 02:20:58 +0000 | |
|---|---|---|
| committer | 2009-04-26 02:20:58 +0000 | |
| commit | 68ee49a25c174f30fd542cda4d39ca444dbbff2a (patch) | |
| tree | ddbc210870a58590f9a78656d622e52ebec36ae0 /sys/dev/gpio/gpiodcf.c | |
| parent | correct case; it has to be loginShell (diff) | |
| download | wireguard-openbsd-68ee49a25c174f30fd542cda4d39ca444dbbff2a.tar.xz wireguard-openbsd-68ee49a25c174f30fd542cda4d39ca444dbbff2a.zip | |
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/gpio/gpiodcf.c')
| -rw-r--r-- | sys/dev/gpio/gpiodcf.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/sys/dev/gpio/gpiodcf.c b/sys/dev/gpio/gpiodcf.c index 58d5abc5ed7..af8f28c08f9 100644 --- a/sys/dev/gpio/gpiodcf.c +++ b/sys/dev/gpio/gpiodcf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: gpiodcf.c,v 1.1 2008/11/28 17:42:43 mbalmer Exp $ */ +/* $OpenBSD: gpiodcf.c,v 1.2 2009/04/26 02:20:58 cnst Exp $ */ /* * Copyright (c) 2008 Marc Balmer <mbalmer@openbsd.org> @@ -192,15 +192,11 @@ gpiodcf_attach(struct device *parent, struct device *self, void *aux) sc->sc_sensor.type = SENSOR_TIMEDELTA; sc->sc_sensor.status = SENSOR_S_UNKNOWN; - sc->sc_sensor.value = 0LL; - sc->sc_sensor.flags = 0; sensor_attach(&sc->sc_sensordev, &sc->sc_sensor); #ifdef GPIODCF_DEBUG sc->sc_skew.type = SENSOR_TIMEDELTA; sc->sc_skew.status = SENSOR_S_UNKNOWN; - sc->sc_skew.value = 0LL; - sc->sc_skew.flags = 0; strlcpy(sc->sc_skew.desc, "local clock skew", sizeof(sc->sc_skew.desc)); sensor_attach(&sc->sc_sensordev, &sc->sc_skew); |
