From ecb89ffa1a53e187cb96e33d00a21bfc3e5ce1e6 Mon Sep 17 00:00:00 2001 From: xtraeme Date: Mon, 2 Jul 2007 10:27:12 +0000 Subject: aiboost_refresh_sensors: initialize j before using it, to make this build with AIBOOST_DEBUG. --- sys/dev/acpi/aiboost.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'sys/dev') 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 -__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 #include @@ -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) { -- cgit