Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/arm/sa11x0 Initialiase nop count to avoid uninitali...
details: https://anonhg.NetBSD.org/src/rev/d9373ab9f9b6
branches: trunk
changeset: 325299:d9373ab9f9b6
user: joerg <joerg%NetBSD.org@localhost>
date: Tue Dec 17 01:29:39 2013 +0000
description:
Initialiase nop count to avoid uninitalised use warnings from Clang.
XXX Nop should be spelled in a better way
diffstat:
sys/arch/arm/sa11x0/sa11x0_ost.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r b1d9957e45fa -r d9373ab9f9b6 sys/arch/arm/sa11x0/sa11x0_ost.c
--- a/sys/arch/arm/sa11x0/sa11x0_ost.c Tue Dec 17 01:28:56 2013 +0000
+++ b/sys/arch/arm/sa11x0/sa11x0_ost.c Tue Dec 17 01:29:39 2013 +0000
@@ -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 @@
+ (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--)
Home |
Main Index |
Thread Index |
Old Index