diff options
| author | Poul-Henning Kamp <phk@FreeBSD.org> | 2004-10-23 12:45:39 +0000 |
|---|---|---|
| committer | Poul-Henning Kamp <phk@FreeBSD.org> | 2004-10-23 12:45:39 +0000 |
| commit | 1ec1f415757b442a6b8eca538d871a31feb5e4f3 (patch) | |
| tree | 1018b899c90186e73580b9290af33cb9ad2254b4 /sys/pc98 | |
| parent | 32204b9721c9bbb1391251c7bb8b0c9886d3b8a1 (diff) | |
Notes
Diffstat (limited to 'sys/pc98')
| -rw-r--r-- | sys/pc98/pc98/wd.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/sys/pc98/pc98/wd.c b/sys/pc98/pc98/wd.c index 9e096b72276b1..6d4d90fe99077 100644 --- a/sys/pc98/pc98/wd.c +++ b/sys/pc98/pc98/wd.c @@ -670,17 +670,14 @@ wdustart(register struct softc *du) return; - bp = bioq_first(&drive_queue[du->dk_lunit]); - if (bp == NULL) { /* yes, an assign */ + bp = bioq_takefirst(&drive_queue[du->dk_lunit]); + if (bp == NULL) return; - } /* * store away which device we came from. */ bp->bio_driver1 = du; - bioq_remove(&drive_queue[du->dk_lunit], bp); - /* link onto controller queue */ bioq_insert_tail(&wdtab[ctrlr].controller_queue, bp); |
