diff options
author | phk <phk@FreeBSD.org> | 2004-10-23 12:45:39 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2004-10-23 12:45:39 +0000 |
commit | 5ff1936d8d481b8bb2199affd4da1aeca4c823f1 (patch) | |
tree | 1018b899c90186e73580b9290af33cb9ad2254b4 /sys/pc98 | |
parent | 36d79a570ab5b15d3f7d791f1892199d79fd26e7 (diff) | |
download | FreeBSD-src-5ff1936d8d481b8bb2199affd4da1aeca4c823f1.zip FreeBSD-src-5ff1936d8d481b8bb2199affd4da1aeca4c823f1.tar.gz |
use bioq_takefirst()
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 9e096b7..6d4d90f 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); |