diff options
| author | xtraeme <xtraeme@NetBSD.org> | 2007-07-02 10:27:12 +0000 |
|---|---|---|
| committer | xtraeme <xtraeme@NetBSD.org> | 2007-07-02 10:27:12 +0000 |
| commit | ecb89ffa1a53e187cb96e33d00a21bfc3e5ce1e6 (patch) | |
| tree | e41ef29c5b59504ba2fd3b62f049259433b7d16a /sys | |
| parent | 58457f22090f963c245fbd86c7f70d454b74f3ce (diff) | |
aiboost_refresh_sensors: initialize j before using it, to make this
build with AIBOOST_DEBUG.
Diffstat (limited to 'sys')
| -rw-r--r-- | sys/dev/acpi/aiboost.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/dev/acpi/aiboost.c b/sys/dev/acpi/aiboost.c index e1da41e3634..be62173c554 100644 --- a/sys/dev/acpi/aiboost.c +++ b/sys/dev/acpi/aiboost.c @@ -1,4 +1,4 @@ -/* $NetBSD: aiboost.c,v 1.8 2007/07/02 10:06:58 xtraeme Exp $ */ +/* $NetBSD: aiboost.c,v 1.9 2007/07/02 10:27:12 xtraeme Exp $ */ /*- * Copyright (c) 2007 Juan Romero Pardines @@ -28,7 +28,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: aiboost.c,v 1.8 2007/07/02 10:06:58 xtraeme Exp $"); +__KERNEL_RCSID(0, "$NetBSD: aiboost.c,v 1.9 2007/07/02 10:27:12 xtraeme Exp $"); #include <sys/param.h> #include <sys/systm.h> @@ -205,6 +205,7 @@ aiboost_refresh_sensors(struct aiboost_softc *sc, envsys_data_t *edata) ACPI_HANDLE *h = sc->sc_node->ad_handle; int i, j, val; + j = 0; i = edata->sensor; /* sensor number */ switch (edata->units) { |
