summaryrefslogtreecommitdiffstats
path: root/sys/kern/subr_disk.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/kern/subr_disk.c')
-rw-r--r--sys/kern/subr_disk.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/subr_disk.c b/sys/kern/subr_disk.c
index 44e4f56..56bab3e 100644
--- a/sys/kern/subr_disk.c
+++ b/sys/kern/subr_disk.c
@@ -99,7 +99,7 @@ void
bioq_insert_head(struct bio_queue_head *head, struct bio *bp)
{
- if (TAILQ_FIRST(&head->queue) == NULL)
+ if (TAILQ_EMPTY(&head->queue))
head->insert_point = bp;
TAILQ_INSERT_HEAD(&head->queue, bp, bio_queue);
}
@@ -108,7 +108,7 @@ void
bioq_insert_tail(struct bio_queue_head *head, struct bio *bp)
{
- if (TAILQ_FIRST(&head->queue) == NULL)
+ if (TAILQ_EMPTY(&head->queue))
head->insert_point = bp;
TAILQ_INSERT_TAIL(&head->queue, bp, bio_queue);
}
OpenPOWER on IntegriCloud