summaryrefslogtreecommitdiffstats
path: root/sys/pc98/cbus
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2004-10-22 08:12:49 +0000
committerphk <phk@FreeBSD.org>2004-10-22 08:12:49 +0000
commita045a7ba2992fb4e9655494404629b65e051bfd4 (patch)
treeb1866aadfca99f118b104da0af5d07a2236a7f34 /sys/pc98/cbus
parent1180ce10621895fa95cb87f42114df87638c6188 (diff)
downloadFreeBSD-src-a045a7ba2992fb4e9655494404629b65e051bfd4.zip
FreeBSD-src-a045a7ba2992fb4e9655494404629b65e051bfd4.tar.gz
Use bioq_takefirst()
Diffstat (limited to 'sys/pc98/cbus')
-rw-r--r--sys/pc98/cbus/fdc.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/sys/pc98/cbus/fdc.c b/sys/pc98/cbus/fdc.c
index bbff21b..22bb9ff 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) {
/*
OpenPOWER on IntegriCloud