From 709379c1aeaadc2770d45e2cb1bc6428c65f09d3 Mon Sep 17 00:00:00 2001 From: phk Date: Sun, 4 Feb 2001 16:08:18 +0000 Subject: Another round of the FOREACH transmogriffer. Created with: sed(1) Reviewed by: md5(1) --- sys/dev/pccard/pccard.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'sys/dev/pccard') diff --git a/sys/dev/pccard/pccard.c b/sys/dev/pccard/pccard.c index 2b67922..69ba238 100644 --- a/sys/dev/pccard/pccard.c +++ b/sys/dev/pccard/pccard.c @@ -321,8 +321,7 @@ pccard_function_init(struct pccard_function *pf) } bus = device_get_parent(pf->dev); /* Remember which configuration entry we are using. */ - for (cfe = STAILQ_FIRST(&pf->cfe_head); cfe != NULL; - cfe = STAILQ_NEXT(cfe, cfe_list)) { + STAILQ_FOREACH(cfe, &pf->cfe_head, cfe_list) { for (i = 0; i < cfe->num_iospace; i++) cfe->iores[i] = NULL; cfe->irqres = NULL; -- cgit v1.1