diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1995-12-17 09:29:47 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1995-12-17 09:29:47 +0000 |
commit | 0c35f1356ef4d5067644171740f5ed3ce554a607 (patch) | |
tree | da73b7fd48df341345a12d996eabbcf84c5c4840 /sys | |
parent | 5db000728e71fcf9ff014e768f693e584ea9e07b (diff) |
match correctly on pfour
Diffstat (limited to 'sys')
-rw-r--r-- | sys/arch/sparc/dev/bwtwo.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/sys/arch/sparc/dev/bwtwo.c b/sys/arch/sparc/dev/bwtwo.c index 5da9f43258c..e743a1e5428 100644 --- a/sys/arch/sparc/dev/bwtwo.c +++ b/sys/arch/sparc/dev/bwtwo.c @@ -155,9 +155,11 @@ bwtwomatch(parent, vcf, aux) if (ca->ca_bustype == BUS_SBUS) return(1); #if NPFOUR > 0 - if (ca->ca_bustype == BUS_PFOUR && - PFOUR_ID(ra->ra_pfour) == PFOUR_ID_BW) - return (1); + if (ca->ca_bustype == BUS_PFOUR) { + if (PFOUR_ID(ra->ra_pfour) == PFOUR_ID_BW) + return (1); + return (0); + } #endif return (probeget(ra->ra_vaddr, 4) != -1); } |