diff options
author | Michael Shalayeff <mickey@cvs.openbsd.org> | 2004-05-24 22:52:53 +0000 |
---|---|---|
committer | Michael Shalayeff <mickey@cvs.openbsd.org> | 2004-05-24 22:52:53 +0000 |
commit | a8b871474c824788ea46f33b59d3041d0fb64f1b (patch) | |
tree | 8c3417679093b3aa34320cc7fe7cdcc8fd0d2e42 /sys/dev/pci/pciide.c | |
parent | 76321ada69f766528442c7cbae791cb3795e9de2 (diff) |
do not bother w/ void pci_devinfo() calls and free resources on failures
Diffstat (limited to 'sys/dev/pci/pciide.c')
-rw-r--r-- | sys/dev/pci/pciide.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/sys/dev/pci/pciide.c b/sys/dev/pci/pciide.c index af8015da9c8..e9b13ca3435 100644 --- a/sys/dev/pci/pciide.c +++ b/sys/dev/pci/pciide.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pciide.c,v 1.166 2004/05/06 17:28:18 peter Exp $ */ +/* $OpenBSD: pciide.c,v 1.167 2004/05/24 22:52:52 mickey Exp $ */ /* $NetBSD: pciide.c,v 1.127 2001/08/03 01:31:08 tsutsui Exp $ */ /* @@ -803,14 +803,10 @@ pciide_attach(parent, self, aux) pcitag_t tag = pa->pa_tag; struct pciide_softc *sc = (struct pciide_softc *)self; pcireg_t csr; - char devinfo[256]; sc->sc_pp = pciide_lookup_product(pa->pa_id); - if (sc->sc_pp == NULL) { + if (sc->sc_pp == NULL) sc->sc_pp = &default_product_desc; - pci_devinfo(pa->pa_id, pa->pa_class, 0, devinfo, - sizeof devinfo); - } sc->sc_rev = PCI_REVISION(pa->pa_class); sc->sc_pc = pa->pa_pc; |