summaryrefslogtreecommitdiff
path: root/sys/dev/i2c/adm1030.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/i2c/adm1030.c')
-rw-r--r--sys/dev/i2c/adm1030.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/i2c/adm1030.c b/sys/dev/i2c/adm1030.c
index 3e8f9ee7aca..cbabb569097 100644
--- a/sys/dev/i2c/adm1030.c
+++ b/sys/dev/i2c/adm1030.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: adm1030.c,v 1.7 2007/03/22 16:55:31 deraadt Exp $ */
+/* $OpenBSD: adm1030.c,v 1.8 2007/06/24 05:34:35 dlg Exp $ */
/*
* Copyright (c) 2005 Theo de Raadt
@@ -102,7 +102,7 @@ admtmp_attach(struct device *parent, struct device *self, void *aux)
sc->sc_sensor[ADMTMP_FAN].type = SENSOR_FANRPM;
- if (sensor_task_register(sc, admtmp_refresh, 5)) {
+ if (sensor_task_register(sc, admtmp_refresh, 5) == NULL) {
printf(", unable to register update task\n");
return;
}