summaryrefslogtreecommitdiff
path: root/sys/arch
diff options
context:
space:
mode:
authorThordur I. Bjornsson <thib@cvs.openbsd.org>2007-12-27 07:09:47 +0000
committerThordur I. Bjornsson <thib@cvs.openbsd.org>2007-12-27 07:09:47 +0000
commit8b2453812b27dfb4c311bcfb410997cdc4fc9eaa (patch)
tree963f8507dba3181ddb2bd1ceb83f701fc209cded /sys/arch
parent4b31522f6b43ff7b33f3d9990fa776a6e3dcc684 (diff)
use TAILQ_FOREACH when possible instead of manually
rolling it. ok todd@, miod@;
Diffstat (limited to 'sys/arch')
-rw-r--r--sys/arch/zaurus/dev/zaurus_scoop.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/arch/zaurus/dev/zaurus_scoop.c b/sys/arch/zaurus/dev/zaurus_scoop.c
index 71d50a29465..cc321d57e14 100644
--- a/sys/arch/zaurus/dev/zaurus_scoop.c
+++ b/sys/arch/zaurus/dev/zaurus_scoop.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: zaurus_scoop.c,v 1.16 2007/03/29 18:42:38 uwe Exp $ */
+/* $OpenBSD: zaurus_scoop.c,v 1.17 2007/12/27 07:09:46 thib Exp $ */
/*
* Copyright (c) 2005 Uwe Stuehler <uwe@bsdx.de>
@@ -428,11 +428,11 @@ scoop_timeout(void *v)
static int state = 0;
if (dk == NULL) {
- for (dk = TAILQ_FIRST(&disklist); dk;
- dk = TAILQ_NEXT(dk, dk_link))
+ TAILQ_FOREACH(dk, &disklist, dk_link) {
if (dk->dk_name &&
strcmp(dk->dk_name, "wd0") == 0)
break;
+ }
}
if (sc->sc_suspended)