summaryrefslogtreecommitdiff
path: root/sys/arch/hppa/dev
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2006-03-15 20:04:38 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2006-03-15 20:04:38 +0000
commitc2cf0d972013ff2806e98e0b0c283cf38ac50fd7 (patch)
tree93f7bb36a695de54b6f438979d358a61a5800169 /sys/arch/hppa/dev
parent7a98474e0906ac069d94837486659e4625c3cf41 (diff)
Correct checks against cd_ndevs - valid numbers are strictly inferior to
cd_ndevs.
Diffstat (limited to 'sys/arch/hppa/dev')
-rw-r--r--sys/arch/hppa/dev/sti_sgc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/hppa/dev/sti_sgc.c b/sys/arch/hppa/dev/sti_sgc.c
index 213f092725d..926dc87f929 100644
--- a/sys/arch/hppa/dev/sti_sgc.c
+++ b/sys/arch/hppa/dev/sti_sgc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sti_sgc.c,v 1.29 2005/03/17 22:31:53 mickey Exp $ */
+/* $OpenBSD: sti_sgc.c,v 1.30 2006/03/15 20:04:36 miod Exp $ */
/*
* Copyright (c) 2000-2003 Michael Shalayeff
@@ -121,7 +121,7 @@ sti_sgc_probe(parent, match, aux)
int rv = 0, romunmapped = 0;
/* due to the graphic nature of this program do probe only one */
- if (cf->cf_unit > sti_cd.cd_ndevs)
+ if (sti_cd.cd_ndevs != 0)
return (0);
if (ca->ca_type.iodc_type != HPPA_TYPE_FIO)