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/cam/cam_periph.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'sys/cam/cam_periph.c') diff --git a/sys/cam/cam_periph.c b/sys/cam/cam_periph.c index b7920b9..675859c 100644 --- a/sys/cam/cam_periph.c +++ b/sys/cam/cam_periph.c @@ -208,8 +208,7 @@ cam_periph_find(struct cam_path *path, char *name) continue; s = splsoftcam(); - for (periph = TAILQ_FIRST(&(*p_drv)->units); periph != NULL; - periph = TAILQ_NEXT(periph, unit_links)) { + TAILQ_FOREACH(periph, &(*p_drv)->units, unit_links) { if (xpt_path_comp(periph->path, path) == 0) { splx(s); return(periph); -- cgit v1.1