From 56e26c3e7ee3a11dae690a43c16570f7f0ded0b3 Mon Sep 17 00:00:00 2001 From: Xin LI Date: Mon, 29 May 2006 05:43:26 +0000 Subject: Unexpand TAILQ_FIRST(foo) == NULL to TAILQ_EMPTY(foo). --- sys/kern/subr_disk.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys') 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); } -- cgit v1.2.3