summaryrefslogtreecommitdiffstats
path: root/sys/kern/subr_disk.c
diff options
context:
space:
mode:
authordelphij <delphij@FreeBSD.org>2006-05-29 05:43:26 +0000
committerdelphij <delphij@FreeBSD.org>2006-05-29 05:43:26 +0000
commit5835e6264a910596584bd65b52ab19ccdb0046eb (patch)
treef4d3b3244b95239cf8e4c8a60d504582dc257d93 /sys/kern/subr_disk.c
parentb60160771c8feb02c2362beea72cd650c1e4782f (diff)
downloadFreeBSD-src-5835e6264a910596584bd65b52ab19ccdb0046eb.zip
FreeBSD-src-5835e6264a910596584bd65b52ab19ccdb0046eb.tar.gz
Unexpand TAILQ_FIRST(foo) == NULL to TAILQ_EMPTY(foo).
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