summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormickey <mickey@openbsd.org>2004-08-17 21:59:15 +0000
committermickey <mickey@openbsd.org>2004-08-17 21:59:15 +0000
commitb8c50c701e902175c8b8e93a16938fa1fe06086c (patch)
tree0d7c8de4470a0efdb86ceb9c4f125084661b77fc
parentRegen (diff)
downloadwireguard-openbsd-b8c50c701e902175c8b8e93a16938fa1fe06086c.tar.xz
wireguard-openbsd-b8c50c701e902175c8b8e93a16938fa1fe06086c.zip
don't forget to set rv to zero on false match
-rw-r--r--sys/dev/isa/it.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/dev/isa/it.c b/sys/dev/isa/it.c
index 0109826004a..2926f461e6d 100644
--- a/sys/dev/isa/it.c
+++ b/sys/dev/isa/it.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: it.c,v 1.8 2004/02/10 20:01:40 grange Exp $ */
+/* $OpenBSD: it.c,v 1.9 2004/08/17 21:59:15 mickey Exp $ */
/*
* Copyright (c) 2003 Julien Bordet <zejames@greyhats.org>
@@ -96,6 +96,8 @@ it_match(struct device *parent, void *match, void *aux)
/* The monitoring may have been enabled by BIOS */
if (cr == 0x11 || cr == 0x13 || cr == 0x18 || cr == 0x19)
rv = 1;
+ else
+ rv = 0;
DPRINTF(("it: rv = %d, cr = %x\n", rv, cr));