summaryrefslogtreecommitdiff
path: root/sys/dev/usb/udcf.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/usb/udcf.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/usb/udcf.c')
-rw-r--r--sys/dev/usb/udcf.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/sys/dev/usb/udcf.c b/sys/dev/usb/udcf.c
index bf90062a737..91b2a46734b 100644
--- a/sys/dev/usb/udcf.c
+++ b/sys/dev/usb/udcf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: udcf.c,v 1.45 2008/11/21 11:36:19 mbalmer Exp $ */
+/* $OpenBSD: udcf.c,v 1.46 2009/04/26 02:20:58 cnst Exp $ */
/*
* Copyright (c) 2006, 2007, 2008 Marc Balmer <mbalmer@openbsd.org>
@@ -226,15 +226,11 @@ udcf_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 UDCF_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);