diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2013-05-27 21:19:32 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2013-05-27 21:19:32 +0000 |
commit | 50550df142341c7b10d54e844e7336bb689ad85d (patch) | |
tree | 50032508b68ba911282f534c5ea47823ae474138 /sys/dev/pci/pciide.c | |
parent | e8acf00c224fc610ec668fd950ee5f85e3219f31 (diff) |
Fix edge cases of uninitialized variables. In my tree for too long, I even
got ok's for azalia but I don't remember from whom.
Diffstat (limited to 'sys/dev/pci/pciide.c')
-rw-r--r-- | sys/dev/pci/pciide.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/pci/pciide.c b/sys/dev/pci/pciide.c index cba8214238b..7bcce085b65 100644 --- a/sys/dev/pci/pciide.c +++ b/sys/dev/pci/pciide.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pciide.c,v 1.341 2013/01/05 08:27:48 jasper Exp $ */ +/* $OpenBSD: pciide.c,v 1.342 2013/05/27 21:19:31 miod Exp $ */ /* $NetBSD: pciide.c,v 1.127 2001/08/03 01:31:08 tsutsui Exp $ */ /* @@ -5980,6 +5980,7 @@ hpt_chip_map(struct pciide_softc *sc, struct pci_attach_args *pa) } for (i = 0; i < sc->sc_wdcdev.nchannels; i++) { cp = &sc->pciide_channels[i]; + compatchan = 0; if (sc->sc_wdcdev.nchannels > 1) { compatchan = i; if((pciide_pci_read(sc->sc_pc, sc->sc_tag, |