diff options
author | Michael Shalayeff <mickey@cvs.openbsd.org> | 2004-08-17 21:59:16 +0000 |
---|---|---|
committer | Michael Shalayeff <mickey@cvs.openbsd.org> | 2004-08-17 21:59:16 +0000 |
commit | 42aa46af962ba920af600796b5bbe851814a27aa (patch) | |
tree | cf00e3bd5db0c7dddf1c73e1a48e7388fa985d9f /sys/dev/isa | |
parent | c6cd86c90378568c2d0368cb8472f856ef398f6d (diff) |
don't forget to set rv to zero on false match
Diffstat (limited to 'sys/dev/isa')
-rw-r--r-- | sys/dev/isa/it.c | 4 |
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)); |