Use bioq_takefirst()
This commit is contained in:
parent
1180ce1062
commit
a045a7ba29
@ -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) {
|
||||
/*
|
||||
|
@ -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) {
|
||||
/*
|
||||
|
Loading…
x
Reference in New Issue
Block a user