aboutsummaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorXin LI <delphij@FreeBSD.org>2006-05-29 05:43:26 +0000
committerXin LI <delphij@FreeBSD.org>2006-05-29 05:43:26 +0000
commit56e26c3e7ee3a11dae690a43c16570f7f0ded0b3 (patch)
treef4d3b3244b95239cf8e4c8a60d504582dc257d93 /sys
parent5d84379dd634020c88d082abef1acadd42b8fcb0 (diff)
downloadsrc-56e26c3e7ee3a11dae690a43c16570f7f0ded0b3.tar.gz
src-56e26c3e7ee3a11dae690a43c16570f7f0ded0b3.zip
Unexpand TAILQ_FIRST(foo) == NULL to TAILQ_EMPTY(foo).
Notes
Notes: svn path=/head/; revision=159030
Diffstat (limited to 'sys')
-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 44e4f566d8dc..56bab3e4da17 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);
}