From b1763d41ddf8b57a46b69e3e8423b9d57392bd6a Mon Sep 17 00:00:00 2001 From: imp Date: Sun, 1 Jul 2001 23:41:57 +0000 Subject: Combine a couple of tests to reduce the indentation level. --- sys/pccard/pcic_pci.c | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) (limited to 'sys/pccard/pcic_pci.c') diff --git a/sys/pccard/pcic_pci.c b/sys/pccard/pcic_pci.c index 4e2b85a..a6b0d75 100644 --- a/sys/pccard/pcic_pci.c +++ b/sys/pccard/pcic_pci.c @@ -416,15 +416,13 @@ pcic_pci_probe(device_t dev) itm = pcic_pci_lookup(device_id, &pcic_pci_devs[0]); if (itm != NULL) desc = itm->descr; - if (desc == NULL) { - if (pci_get_class(dev) == PCIC_BRIDGE) { - subclass = pci_get_subclass(dev); - progif = pci_get_progif(dev); - if (subclass == PCIS_BRIDGE_PCMCIA && progif == 0) - desc = "Generic PCI-PCMCIA Bridge"; - if (subclass == PCIS_BRIDGE_CARDBUS && progif == 0) - desc = "YENTA PCI-CARDBUS Bridge"; - } + if (desc == NULL && pci_get_class(dev) == PCIC_BRIDGE) { + subclass = pci_get_subclass(dev); + progif = pci_get_progif(dev); + if (subclass == PCIS_BRIDGE_PCMCIA && progif == 0) + desc = "Generic PCI-PCMCIA Bridge"; + if (subclass == PCIS_BRIDGE_CARDBUS && progif == 0) + desc = "YENTA PCI-CARDBUS Bridge"; } if (desc == NULL) return (ENXIO); -- cgit v1.1