Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/cardbus fix uninitialised variable warning. XXX: no...



details:   https://anonhg.NetBSD.org/src/rev/1e057c6b9c4b
branches:  trunk
changeset: 555650:1e057c6b9c4b
user:      lukem <lukem%NetBSD.org@localhost>
date:      Mon Nov 24 06:11:56 2003 +0000

description:
fix uninitialised variable warning.  XXX: not sure if this is correct

diffstat:

 sys/dev/cardbus/rbus_ppb.c |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (26 lines):

diff -r 80d7679ac351 -r 1e057c6b9c4b sys/dev/cardbus/rbus_ppb.c
--- a/sys/dev/cardbus/rbus_ppb.c        Mon Nov 24 05:44:59 2003 +0000
+++ b/sys/dev/cardbus/rbus_ppb.c        Mon Nov 24 06:11:56 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: rbus_ppb.c,v 1.9 2003/01/01 00:10:17 thorpej Exp $     */
+/*     $NetBSD: rbus_ppb.c,v 1.10 2003/11/24 06:11:56 lukem Exp $      */
 
 /*
  * Copyright (c) 1999 The NetBSD Foundation, Inc.
@@ -41,7 +41,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: rbus_ppb.c,v 1.9 2003/01/01 00:10:17 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rbus_ppb.c,v 1.10 2003/11/24 06:11:56 lukem Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -704,6 +704,7 @@
 
        busdata = cardbus_conf_read(cc, cf, ca->ca_tag, PPB_REG_BUSINFO);
        minbus = pcibios_max_bus;
+       maxbus = minbus;                /* XXX; gcc */
 
        if (PPB_BUSINFO_SECONDARY(busdata) == 0) {
          printf("%s: not configured by system firmware calling pci_bus_fixup(%d)\n",



Home | Main Index | Thread Index | Old Index