summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2005-12-23 01:15:07 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2005-12-23 01:15:07 +0000
commitd0ebc67babc8cabc21586312dd2c32814f1f7eb7 (patch)
tree3c783e22e74bbdd17c48d35198fdd83b5234311d /sys/dev
parent08cda27e4fa7887e2fa64d42ad31892c56021f05 (diff)
match functions deserve a failure condition
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/i2c/adm1021.c4
-rw-r--r--sys/dev/i2c/adm1025.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/sys/dev/i2c/adm1021.c b/sys/dev/i2c/adm1021.c
index 9e08292431f..bfb420fcfa4 100644
--- a/sys/dev/i2c/adm1021.c
+++ b/sys/dev/i2c/adm1021.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: adm1021.c,v 1.1 2005/12/22 23:44:12 deraadt Exp $ */
+/* $OpenBSD: adm1021.c,v 1.2 2005/12/23 01:15:06 deraadt Exp $ */
/*
* Copyright (c) 2005 Theo de Raadt
@@ -71,7 +71,7 @@ admtemp_match(struct device *parent, void *match, void *aux)
*/
return (1);
}
- return (1);
+ return (0);
}
void
diff --git a/sys/dev/i2c/adm1025.c b/sys/dev/i2c/adm1025.c
index 79c226390f1..ebef5f607ff 100644
--- a/sys/dev/i2c/adm1025.c
+++ b/sys/dev/i2c/adm1025.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: adm1025.c,v 1.4 2005/12/22 23:49:41 deraadt Exp $ */
+/* $OpenBSD: adm1025.c,v 1.5 2005/12/23 01:15:06 deraadt Exp $ */
/*
* Copyright (c) 2005 Theo de Raadt
@@ -84,7 +84,7 @@ admtm_match(struct device *parent, void *match, void *aux)
*/
return (1);
}
- return (1);
+ return (0);
}
void