aboutsummaryrefslogtreecommitdiff
path: root/sys/pc98
diff options
context:
space:
mode:
authorPoul-Henning Kamp <phk@FreeBSD.org>2004-10-22 08:12:49 +0000
committerPoul-Henning Kamp <phk@FreeBSD.org>2004-10-22 08:12:49 +0000
commitc2ec6cc80982a1f855130010799158600c6e4cdb (patch)
treeb1866aadfca99f118b104da0af5d07a2236a7f34 /sys/pc98
parent72286081d0d4c4eb5a3b3a221ecced497df445bc (diff)
downloadsrc-c2ec6cc80982a1f855130010799158600c6e4cdb.tar.gz
src-c2ec6cc80982a1f855130010799158600c6e4cdb.zip
Use bioq_takefirst()
Notes
Notes: svn path=/head/; revision=136765
Diffstat (limited to 'sys/pc98')
-rw-r--r--sys/pc98/cbus/fdc.c6
-rw-r--r--sys/pc98/pc98/fd.c6
2 files changed, 4 insertions, 8 deletions
diff --git a/sys/pc98/cbus/fdc.c b/sys/pc98/cbus/fdc.c
index bbff21bd7839..22bb9ff5b720 100644
--- a/sys/pc98/cbus/fdc.c
+++ b/sys/pc98/cbus/fdc.c
@@ -1870,11 +1870,9 @@ fdstate(fdc_p fdc)
bp = fdc->bp;
if (bp == NULL) {
- bp = bioq_first(&fdc->head);
- if (bp != NULL) {
- bioq_remove(&fdc->head, bp);
+ bp = bioq_takefirst(&fdc->head);
+ if (bp != NULL)
fdc->bp = bp;
- }
}
if (bp == NULL) {
/*
diff --git a/sys/pc98/pc98/fd.c b/sys/pc98/pc98/fd.c
index bbff21bd7839..22bb9ff5b720 100644
--- a/sys/pc98/pc98/fd.c
+++ b/sys/pc98/pc98/fd.c
@@ -1870,11 +1870,9 @@ fdstate(fdc_p fdc)
bp = fdc->bp;
if (bp == NULL) {
- bp = bioq_first(&fdc->head);
- if (bp != NULL) {
- bioq_remove(&fdc->head, bp);
+ bp = bioq_takefirst(&fdc->head);
+ if (bp != NULL)
fdc->bp = bp;
- }
}
if (bp == NULL) {
/*