Module Name: src
Committed By: joerg
Date: Tue Dec 17 01:29:39 UTC 2013
Modified Files:
src/sys/arch/arm/sa11x0: sa11x0_ost.c
Log Message:
Initialiase nop count to avoid uninitalised use warnings from Clang.
XXX Nop should be spelled in a better way
To generate a diff of this commit:
cvs rdiff -u -r1.30 -r1.31 src/sys/arch/arm/sa11x0/sa11x0_ost.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/arch/arm/sa11x0/sa11x0_ost.c
diff -u src/sys/arch/arm/sa11x0/sa11x0_ost.c:1.30 src/sys/arch/arm/sa11x0/sa11x0_ost.c:1.31
--- src/sys/arch/arm/sa11x0/sa11x0_ost.c:1.30 Sun Aug 12 17:21:29 2012
+++ src/sys/arch/arm/sa11x0/sa11x0_ost.c Tue Dec 17 01:29:39 2013
@@ -1,4 +1,4 @@
-/* $NetBSD: sa11x0_ost.c,v 1.30 2012/08/12 17:21:29 nonaka Exp $ */
+/* $NetBSD: sa11x0_ost.c,v 1.31 2013/12/17 01:29:39 joerg Exp $ */
/*
* Copyright (c) 1997 Mark Brinicombe.
@@ -38,7 +38,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: sa11x0_ost.c,v 1.30 2012/08/12 17:21:29 nonaka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sa11x0_ost.c,v 1.31 2013/12/17 01:29:39 joerg Exp $");
#include <sys/types.h>
#include <sys/param.h>
@@ -308,7 +308,7 @@ delay(u_int usecs)
+ (TIMER_FREQUENCY / 100) * usec / 10000;
if (saost_sc == NULL) {
- volatile int k;
+ volatile int k = 0;
int j;
/* clock isn't initialized yet */
for (; usecs > 0; usecs--)