From 32204b9721c9bbb1391251c7bb8b0c9886d3b8a1 Mon Sep 17 00:00:00 2001 From: Poul-Henning Kamp Date: Sat, 23 Oct 2004 12:44:19 +0000 Subject: [PATCH] Use bioq_takefirst() --- sys/ia64/ia64/sscdisk.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/sys/ia64/ia64/sscdisk.c b/sys/ia64/ia64/sscdisk.c index 726fec4140c2..1861d898a73d 100644 --- a/sys/ia64/ia64/sscdisk.c +++ b/sys/ia64/ia64/sscdisk.c @@ -115,9 +115,7 @@ sscstrategy(struct bio *bp) sc->busy++; while (1) { - bp = bioq_first(&sc->bio_queue); - if (bp) - bioq_remove(&sc->bio_queue, bp); + bp = bioq_takefirst(&sc->bio_queue); splx(s); if (!bp) break;