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/pci/if_wpi.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/pci/if_wpi.c')
| -rw-r--r-- | sys/dev/pci/if_wpi.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/dev/pci/if_wpi.c b/sys/dev/pci/if_wpi.c index d1f9b2c724b..b4f774cd94e 100644 --- a/sys/dev/pci/if_wpi.c +++ b/sys/dev/pci/if_wpi.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_wpi.c,v 1.84 2009/03/29 21:53:52 sthen Exp $ */ +/* $OpenBSD: if_wpi.c,v 1.85 2009/04/26 02:20:58 cnst Exp $ */ /*- * Copyright (c) 2006-2008 @@ -367,7 +367,6 @@ wpi_sensor_attach(struct wpi_softc *sc) sizeof sc->sensor.desc); sc->sensor.type = SENSOR_INTEGER; /* not in muK! */ /* Temperature is not valid unless interface is up. */ - sc->sensor.value = 0; sc->sensor.flags = SENSOR_FINVALID; sensor_attach(&sc->sensordev, &sc->sensor); sensordev_install(&sc->sensordev); |
