diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 1997-04-07 06:23:11 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 1997-04-07 06:23:11 +0000 |
commit | 26c621ce2cdb9419b7ad8e899ca38cce720328e3 (patch) | |
tree | fc5c4b2a1c435570e73ed04ecf067fd80279d1cf /sys/arch/alpha | |
parent | 05a1db3a7bca9a4cba1f16e930156616227f7fd7 (diff) |
Use MAXPARTITIONS not ``8''
Diffstat (limited to 'sys/arch/alpha')
-rw-r--r-- | sys/arch/alpha/stand/boot/disk.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/sys/arch/alpha/stand/boot/disk.c b/sys/arch/alpha/stand/boot/disk.c index e29a2b2a116..05d1c348068 100644 --- a/sys/arch/alpha/stand/boot/disk.c +++ b/sys/arch/alpha/stand/boot/disk.c @@ -1,4 +1,4 @@ -/* $OpenBSD: disk.c,v 1.5 1996/11/27 19:54:52 niklas Exp $ */ +/* $OpenBSD: disk.c,v 1.6 1997/04/07 06:23:10 millert Exp $ */ /* $NetBSD: disk.c,v 1.3 1995/11/23 02:39:40 cgd Exp $ */ /* @@ -106,12 +106,12 @@ diskopen(f, ctlr, unit, part) char *msg, buf[DEV_BSIZE], devname[32]; static struct disk_softc *sc; -if (sc != NULL) { - f->f_devdata = (void *)sc; - return 0; -} + if (sc != NULL) { + f->f_devdata = (void *)sc; + return 0; + } - if (unit >= 8 || part >= 8) + if (unit >= 8 || part >= MAXPARTITIONS) return (ENXIO); /* * XXX |