diff options
| author | Poul-Henning Kamp <phk@FreeBSD.org> | 2001-02-04 13:13:25 +0000 |
|---|---|---|
| committer | Poul-Henning Kamp <phk@FreeBSD.org> | 2001-02-04 13:13:25 +0000 |
| commit | fc2ffbe6040d6630a06229c5c9be77601fb635eb (patch) | |
| tree | 328f91e23b34b382d998fba4c7e55796b240b62b /sys/dev/eisa | |
| parent | ef9e85abba5ce45c8b3fc840db320edb1abe0160 (diff) | |
Notes
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 a781251cf477..d67b453e4017 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; } |
