diff options
author | kato <kato@FreeBSD.org> | 1998-02-02 09:52:28 +0000 |
---|---|---|
committer | kato <kato@FreeBSD.org> | 1998-02-02 09:52:28 +0000 |
commit | 526a104a44b8dcf2a183762ffaead088224eedd2 (patch) | |
tree | 25d8db09b11d8a407da9334319a9a68353a44a1a /sys | |
parent | fb747db726057a714dae7caef3e369b2d8be5b93 (diff) | |
download | FreeBSD-src-526a104a44b8dcf2a183762ffaead088224eedd2.zip FreeBSD-src-526a104a44b8dcf2a183762ffaead088224eedd2.tar.gz |
Sync with sys/i386/isa/wd.c revision 1.150.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/pc98/pc98/wd.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/sys/pc98/pc98/wd.c b/sys/pc98/pc98/wd.c index 80a3b97..631f08d 100644 --- a/sys/pc98/pc98/wd.c +++ b/sys/pc98/pc98/wd.c @@ -34,7 +34,7 @@ * SUCH DAMAGE. * * from: @(#)wd.c 7.2 (Berkeley) 5/9/91 - * $Id: wd.c,v 1.41 1998/01/24 02:54:43 eivind Exp $ + * $Id: wd.c,v 1.42 1998/01/24 06:54:17 kato Exp $ */ /* TODO: @@ -629,8 +629,9 @@ wdattach(struct isa_device *dvp) #else for (unit=0; unit<2; ++unit) { #endif /* PC98 */ - for (lunit=0; lunit<NWD && wddrives[lunit]; ++lunit) - if (wddrives[lunit]->dk_ctrlr == dvp->id_unit && + for (lunit=0; lunit<NWD; ++lunit) + if (wddrives[lunit] && + wddrives[lunit]->dk_ctrlr == dvp->id_unit && wddrives[lunit]->dk_unit == unit) goto next; #ifdef CMD640 |