Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/pci Uninitialised variable (from Krister Walfridsson...
details: https://anonhg.NetBSD.org/src/rev/6caa3536a346
branches: trunk
changeset: 510499:6caa3536a346
user: bouyer <bouyer%NetBSD.org@localhost>
date: Wed May 30 20:30:02 2001 +0000
description:
Uninitialised variable (from Krister Walfridsson): in acard_chip_map()
drop compatchan and use the real channel number instead.
diffstat:
sys/dev/pci/pciide.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 37bec5f4b070 -r 6caa3536a346 sys/dev/pci/pciide.c
--- a/sys/dev/pci/pciide.c Wed May 30 20:28:17 2001 +0000
+++ b/sys/dev/pci/pciide.c Wed May 30 20:30:02 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pciide.c,v 1.117 2001/05/14 20:41:27 matt Exp $ */
+/* $NetBSD: pciide.c,v 1.118 2001/05/30 20:30:02 bouyer Exp $ */
/*
@@ -3755,7 +3755,7 @@
struct pci_attach_args *pa;
{
struct pciide_channel *cp;
- int i, compatchan;
+ int i;
pcireg_t interface;
bus_size_t cmdsize, ctlsize;
@@ -3801,7 +3801,7 @@
cp->hw_ok = pciide_mapregs_native(pa, cp, &cmdsize,
&ctlsize, pciide_pci_intr);
} else {
- cp->hw_ok = pciide_mapregs_compat(pa, cp, compatchan,
+ cp->hw_ok = pciide_mapregs_compat(pa, cp, i,
&cmdsize, &ctlsize);
}
if (cp->hw_ok == 0)
Home |
Main Index |
Thread Index |
Old Index