From d0ebc67babc8cabc21586312dd2c32814f1f7eb7 Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Fri, 23 Dec 2005 01:15:07 +0000 Subject: match functions deserve a failure condition --- sys/dev/i2c/adm1021.c | 4 ++-- sys/dev/i2c/adm1025.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'sys/dev') 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 -- cgit v1.2.3