summaryrefslogtreecommitdiffstats
path: root/sys/pccard/pcic_pci.c
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2001-07-01 23:41:57 +0000
committerimp <imp@FreeBSD.org>2001-07-01 23:41:57 +0000
commitb1763d41ddf8b57a46b69e3e8423b9d57392bd6a (patch)
tree69828bdd2372e9cc20329f2deb8c8ed34227df76 /sys/pccard/pcic_pci.c
parentaef6e2616951d9fc086263ce8d8dd30f376642dd (diff)
downloadFreeBSD-src-b1763d41ddf8b57a46b69e3e8423b9d57392bd6a.zip
FreeBSD-src-b1763d41ddf8b57a46b69e3e8423b9d57392bd6a.tar.gz
Combine a couple of tests to reduce the indentation level.
Diffstat (limited to 'sys/pccard/pcic_pci.c')
-rw-r--r--sys/pccard/pcic_pci.c16
1 files changed, 7 insertions, 9 deletions
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);
OpenPOWER on IntegriCloud