Unexpand TAILQ_FIRST(foo) == NULL to TAILQ_EMPTY(foo).

This commit is contained in:
Xin LI 2006-05-29 05:43:26 +00:00
parent 5d84379dd6
commit 56e26c3e7e

View File

@ -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);
}