Use bioq_takefirst()

This commit is contained in:
phk 2004-10-22 08:12:49 +00:00
parent 1180ce1062
commit a045a7ba29
2 changed files with 4 additions and 8 deletions

View File

@ -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) {
/*

View File

@ -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) {
/*