Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 23 Sep 2009 15:39:55 +0000 (UTC)
From:      John Baldwin <jhb@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r197438 - head/sys/dev/acpica
Message-ID:  <200909231539.n8NFdtCm067693@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: jhb
Date: Wed Sep 23 15:39:54 2009
New Revision: 197438
URL: http://svn.freebsd.org/changeset/base/197438

Log:
  Uninline an instance of STAILQ_FOREACH_SAFE().

Modified:
  head/sys/dev/acpica/acpi_video.c

Modified: head/sys/dev/acpica/acpi_video.c
==============================================================================
--- head/sys/dev/acpica/acpi_video.c	Wed Sep 23 15:32:59 2009	(r197437)
+++ head/sys/dev/acpica/acpi_video.c	Wed Sep 23 15:39:54 2009	(r197438)
@@ -282,8 +282,7 @@ acpi_video_detach(device_t dev)
 				acpi_video_notify_handler);
 
 	ACPI_SERIAL_BEGIN(video);
-	for (vo = STAILQ_FIRST(&sc->vid_outputs); vo != NULL; vo = vn) {
-		vn = STAILQ_NEXT(vo, vo_next);
+	STAILQ_FOREACH_SAFE(vo, &sc->vid_outputs, vo_next, vn) {
 		acpi_video_vo_destroy(vo);
 	}
 	ACPI_SERIAL_END(video);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200909231539.n8NFdtCm067693>