summaryrefslogtreecommitdiff
path: root/sys/arch/zaurus/dev/zaurus_scoop.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/arch/zaurus/dev/zaurus_scoop.c')
-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)