diff options
author | phk <phk@FreeBSD.org> | 2001-02-04 13:13:25 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2001-02-04 13:13:25 +0000 |
commit | e87f7a15ad62e1dd25061ddb301662e809692c2c (patch) | |
tree | 5f0ba9ebd57fbfd6e13f2b9403d96e9bfae48d8f /sys/dev/eisa | |
parent | f3b4fbe35f6e8e9d09f742c114281d8e9984d135 (diff) | |
download | FreeBSD-src-e87f7a15ad62e1dd25061ddb301662e809692c2c.zip FreeBSD-src-e87f7a15ad62e1dd25061ddb301662e809692c2c.tar.gz |
Mechanical change to use <sys/queue.h> macro API instead of
fondling implementation details.
Created with: sed(1)
Reviewed by: md5(1)
Diffstat (limited to 'sys/dev/eisa')
-rw-r--r-- | sys/dev/eisa/eisaconf.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/eisa/eisaconf.c b/sys/dev/eisa/eisaconf.c index a781251..d67b453 100644 --- a/sys/dev/eisa/eisaconf.c +++ b/sys/dev/eisa/eisaconf.c @@ -539,12 +539,12 @@ eisa_add_resvaddr(struct eisa_device *e_dev, struct resvlist *head, u_long base, reservation->size = size; reservation->flags = flags; - if (!head->lh_first) { + if (!LIST_FIRST(head)) { LIST_INSERT_HEAD(head, reservation, links); } else { resvaddr_t *node; - for(node = head->lh_first; node; node = node->links.le_next) { + LIST_FOREACH(node, head, links) { if (node->addr > reservation->addr) { /* * List is sorted in increasing @@ -564,7 +564,7 @@ eisa_add_resvaddr(struct eisa_device *e_dev, struct resvlist *head, u_long base, return (EEXIST); } - if (!node->links.le_next) { + if (!LIST_NEXT(node, links)) { LIST_INSERT_AFTER(node, reservation, links); break; } |