Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/sbus Uninitialized variable.



details:   https://anonhg.NetBSD.org/src/rev/2c52f2b0be37
branches:  trunk
changeset: 554456:2c52f2b0be37
user:      ad <ad%NetBSD.org@localhost>
date:      Tue Oct 28 14:18:39 2003 +0000

description:
Uninitialized variable.

diffstat:

 sys/dev/sbus/zx.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r c273f52a1baa -r 2c52f2b0be37 sys/dev/sbus/zx.c
--- a/sys/dev/sbus/zx.c Tue Oct 28 12:11:31 2003 +0000
+++ b/sys/dev/sbus/zx.c Tue Oct 28 14:18:39 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: zx.c,v 1.10 2003/08/25 17:50:29 uwe Exp $      */
+/*     $NetBSD: zx.c,v 1.11 2003/10/28 14:18:39 ad Exp $       */
 
 /*
  *  Copyright (c) 2002 The NetBSD Foundation, Inc.
@@ -52,7 +52,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: zx.c,v 1.10 2003/08/25 17:50:29 uwe Exp $");
+__KERNEL_RCSID(0, "$NetBSD: zx.c,v 1.11 2003/10/28 14:18:39 ad Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -655,7 +655,7 @@
                SETREG(zcu->zcu_misc, zcu->zcu_misc & ~0x80);
 
        for (j = 0; j < 2; j++) {
-               SETREG(zcu->zcu_type, 0x20 << i);
+               SETREG(zcu->zcu_type, 0x20 << j);
 
                for (i = sc->sc_shifty; i < 32; i++) {
                        data = sc->sc_curbits[j][i];



Home | Main Index | Thread Index | Old Index