diff options
author | delphij <delphij@FreeBSD.org> | 2006-05-29 05:43:26 +0000 |
---|---|---|
committer | delphij <delphij@FreeBSD.org> | 2006-05-29 05:43:26 +0000 |
commit | 5835e6264a910596584bd65b52ab19ccdb0046eb (patch) | |
tree | f4d3b3244b95239cf8e4c8a60d504582dc257d93 | |
parent | b60160771c8feb02c2362beea72cd650c1e4782f (diff) | |
download | FreeBSD-src-5835e6264a910596584bd65b52ab19ccdb0046eb.zip FreeBSD-src-5835e6264a910596584bd65b52ab19ccdb0046eb.tar.gz |
Unexpand TAILQ_FIRST(foo) == NULL to TAILQ_EMPTY(foo).
-rw-r--r-- | sys/kern/subr_disk.c | 4 |
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); } |