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/vmt.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/vmt.c')
| -rw-r--r-- | sys/dev/vmt.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/sys/dev/vmt.c b/sys/dev/vmt.c index d11263b8011..afe5b3d5696 100644 --- a/sys/dev/vmt.c +++ b/sys/dev/vmt.c @@ -1,4 +1,4 @@ -/* $OpenBSD: vmt.c,v 1.4 2008/10/23 22:22:43 deraadt Exp $ */ +/* $OpenBSD: vmt.c,v 1.5 2009/04/26 02:20:58 cnst Exp $ */ /* * Copyright (c) 2007 David Crawshaw <david@zentus.com> @@ -240,8 +240,6 @@ vmt_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); sensordev_install(&sc->sc_sensordev); |
