Source-Changes-HG archive

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

[src/netbsd-1-5]: src/sys/arch/mvme68k/dev Pullup from trunk: 1.8-1.9



details:   https://anonhg.NetBSD.org/src/rev/473eb3faa415
branches:  netbsd-1-5
changeset: 488256:473eb3faa415
user:      scw <scw%NetBSD.org@localhost>
date:      Sun Jun 25 17:06:32 2000 +0000

description:
Pullup from trunk: 1.8-1.9
Authorised by: thorpej

GC an unused variable when DIAGNOSTIC and M68040 are undefined.

diffstat:

 sys/arch/mvme68k/dev/vme_pcc.c |  8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diffs (36 lines):

diff -r 9d582b804cc0 -r 473eb3faa415 sys/arch/mvme68k/dev/vme_pcc.c
--- a/sys/arch/mvme68k/dev/vme_pcc.c    Sun Jun 25 17:02:32 2000 +0000
+++ b/sys/arch/mvme68k/dev/vme_pcc.c    Sun Jun 25 17:06:32 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: vme_pcc.c,v 1.8 2000/06/04 19:14:49 cgd Exp $  */
+/*     $NetBSD: vme_pcc.c,v 1.8.2.1 2000/06/25 17:06:32 scw Exp $      */
 
 /*-
  * Copyright (c) 1996-2000 The NetBSD Foundation, Inc.
@@ -158,7 +158,6 @@
        struct vme_pcc_softc *sc;
        struct vmebus_attach_args vaa;
        u_int8_t reg;
-       int i;
 
        sc = (struct vme_pcc_softc *) self;
        pa = aux;
@@ -204,7 +203,9 @@
        }
 
 #ifdef DIAGNOSTIC
-       for (i = 0; i < VME1_NRANGES; i++) {
+       {
+        int i;
+        for (i = 0; i < VME1_NRANGES; i++) {
                vme_addr_t mask;
 
                switch (vme_pcc_ranges[i].pr_am & VME_AM_ADRSIZEMASK) {
@@ -233,6 +234,7 @@
                            vme_pcc_ranges[i].pr_start) + 1,
                        vme_pcc_ranges[i].pr_am,
                        vme_pcc_ranges[i].pr_datasize));
+        }
        }
 #endif
 



Home | Main Index | Thread Index | Old Index