Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/sparc/dev Initialize local variable `bt' in cgthree...



details:   https://anonhg.NetBSD.org/src/rev/1472bc916cdf
branches:  trunk
changeset: 484918:1472bc916cdf
user:      pk <pk%NetBSD.org@localhost>
date:      Fri Apr 14 19:36:43 2000 +0000

description:
Initialize local variable `bt' in cgthree_attach().

diffstat:

 sys/arch/sparc/dev/cgthree.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 6e5d1270e2f2 -r 1472bc916cdf sys/arch/sparc/dev/cgthree.c
--- a/sys/arch/sparc/dev/cgthree.c      Fri Apr 14 19:31:50 2000 +0000
+++ b/sys/arch/sparc/dev/cgthree.c      Fri Apr 14 19:36:43 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: cgthree.c,v 1.43 2000/04/04 21:47:17 pk Exp $ */
+/*     $NetBSD: cgthree.c,v 1.44 2000/04/14 19:36:43 pk Exp $ */
 
 /*-
  * Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -347,7 +347,8 @@
 {
        int i;
        struct fbdevice *fb = &sc->sc_fb;
-       volatile struct bt_regs *bt;
+       volatile struct fbcontrol *fbc = sc->sc_fbc;
+       volatile struct bt_regs *bt = &fbc->fbc_dac;
 
        fb->fb_type.fb_cmsize = 256;
        fb->fb_type.fb_size = fb->fb_type.fb_height * fb->fb_linebytes;
@@ -359,7 +360,6 @@
        if ((sc->sc_fbc->fbc_ctrl & FBC_TIMING) == 0) {
                for (i = 0; i < sizeof(cg3_videoctrl)/sizeof(cg3_videoctrl[0]);
                     i++) {
-                       volatile struct fbcontrol *fbc = sc->sc_fbc;
                        if ((fbc->fbc_status & FBS_MSENSE) ==
                             cg3_videoctrl[i].sense) {
                                int j;



Home | Main Index | Thread Index | Old Index