Module Name: src
Committed By: martin
Date: Fri May 1 03:18:20 UTC 2009
Modified Files:
src/sys/dev/ic: ncr53c9x.c
Log Message:
Add missing braces - patch from Kurt Lidl in PR port-vax/41314.
To generate a diff of this commit:
cvs rdiff -u -r1.137 -r1.138 src/sys/dev/ic/ncr53c9x.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/dev/ic/ncr53c9x.c
diff -u src/sys/dev/ic/ncr53c9x.c:1.137 src/sys/dev/ic/ncr53c9x.c:1.138
--- src/sys/dev/ic/ncr53c9x.c:1.137 Tue May 13 22:16:27 2008
+++ src/sys/dev/ic/ncr53c9x.c Fri May 1 03:18:20 2009
@@ -1,4 +1,4 @@
-/* $NetBSD: ncr53c9x.c,v 1.137 2008/05/13 22:16:27 christos Exp $ */
+/* $NetBSD: ncr53c9x.c,v 1.138 2009/05/01 03:18:20 martin Exp $ */
/*-
* Copyright (c) 1998, 2002 The NetBSD Foundation, Inc.
@@ -70,7 +70,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ncr53c9x.c,v 1.137 2008/05/13 22:16:27 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ncr53c9x.c,v 1.138 2009/05/01 03:18:20 martin Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -469,13 +469,14 @@
ecb->xs->error = result;
ncr53c9x_done(sc, ecb);
}
- for (i = 0; i < 256; i++)
+ for (i = 0; i < 256; i++) {
ecb = li->queued[i];
if (ecb != NULL) {
li->queued[i] = NULL;
ecb->xs->error = result;
ncr53c9x_done(sc, ecb);
}
+ }
li->used = 0;
}
}