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/147354bc2312
branches:  trunk
changeset: 792039:147354bc2312
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 63a5d8ba93c2 -r 147354bc2312 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