Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/mips/alchemy Fix bogus gcc uninitialised warnings -...



details:   https://anonhg.NetBSD.org/src/rev/45ccab9a42a7
branches:  trunk
changeset: 588161:45ccab9a42a7
user:      simonb <simonb%NetBSD.org@localhost>
date:      Fri Feb 10 02:15:37 2006 +0000

description:
Fix bogus gcc uninitialised warnings - they're not needed for one of the
variables.
Update a comment to match changed code.

diffstat:

 sys/arch/mips/alchemy/au_icu.c |  10 ++++++----
 1 files changed, 6 insertions(+), 4 deletions(-)

diffs (38 lines):

diff -r b62f936fd8e1 -r 45ccab9a42a7 sys/arch/mips/alchemy/au_icu.c
--- a/sys/arch/mips/alchemy/au_icu.c    Fri Feb 10 00:56:41 2006 +0000
+++ b/sys/arch/mips/alchemy/au_icu.c    Fri Feb 10 02:15:37 2006 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: au_icu.c,v 1.16 2006/02/10 00:56:41 gdamore Exp $      */
+/*     $NetBSD: au_icu.c,v 1.17 2006/02/10 02:15:37 simonb Exp $       */
 
 /*-
  * Copyright (c) 2006 Itronix Inc.
@@ -75,7 +75,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: au_icu.c,v 1.16 2006/02/10 00:56:41 gdamore Exp $");
+__KERNEL_RCSID(0, "$NetBSD: au_icu.c,v 1.17 2006/02/10 02:15:37 simonb Exp $");
 
 #include "opt_ddb.h"
 
@@ -331,7 +331,9 @@
 {
        struct au_intrhand *ih;
        int level;
-       uint32_t icu_base = 0, irqstat = 0, irqmask = 0; /* XXX gcc */
+       uint32_t icu_base, irqstat, irqmask;
+
+       icu_base = irqstat = 0; /* XXX gcc */
 
        for (level = 3; level >= 0; level--) {
                if ((ipending & (MIPS_INT_MASK_0 << level)) == 0)
@@ -343,7 +345,7 @@
                 *
                 * is something like:
                 *
-                *    irqmask = REGVAL(
+                *    irqstat = REGVAL(
                 *       (level & 4 == 0) ? IC0_BASE ? IC1_BASE +
                 *       (level & 2 == 0) ? IC_REQUEST0_INT : IC_REQUEST1_INT);
                 *



Home | Main Index | Thread Index | Old Index