diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2008-06-13 08:45:51 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2008-06-13 08:45:51 +0000 |
commit | 62392d8d28605d490e57fc17890586357f3d92a3 (patch) | |
tree | 6cb615cd97130540770f3ebd1f46e19097e75d3b /sys | |
parent | 3e3a40248fef3c15293850f81c91232f3079b3af (diff) |
properly indent something horridly misleading
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/pci/pci.c | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/sys/dev/pci/pci.c b/sys/dev/pci/pci.c index 72742c680f6..f929ac35135 100644 --- a/sys/dev/pci/pci.c +++ b/sys/dev/pci/pci.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pci.c,v 1.57 2008/06/13 08:45:12 deraadt Exp $ */ +/* $OpenBSD: pci.c,v 1.58 2008/06/13 08:45:50 deraadt Exp $ */ /* $NetBSD: pci.c,v 1.31 1997/06/06 23:48:04 thorpej Exp $ */ /* @@ -334,22 +334,22 @@ pci_probe_device(struct pci_softc *sc, pcitag_t tag, } else { if ((dev = config_found_sm(&sc->sc_dev, &pa, pciprint, pcisubmatch))) { - pcireg_t reg; - - /* skip header type != 0 */ - reg = pci_conf_read(pc, tag, PCI_BHLC_REG); - if (PCI_HDRTYPE_TYPE(reg) != 0) - return(0); - if (pci_get_capability(pc, tag, - PCI_CAP_PWRMGMT, NULL, NULL) == 0) - return(0); - if (!(pd = malloc(sizeof *pd, M_DEVBUF, - M_NOWAIT))) - return(0); - pd->pd_tag = tag; - pd->pd_dev = dev; - LIST_INSERT_HEAD(&sc->sc_devs, pd, pd_next); - } + pcireg_t reg; + + /* skip header type != 0 */ + reg = pci_conf_read(pc, tag, PCI_BHLC_REG); + if (PCI_HDRTYPE_TYPE(reg) != 0) + return(0); + if (pci_get_capability(pc, tag, + PCI_CAP_PWRMGMT, NULL, NULL) == 0) + return(0); + if (!(pd = malloc(sizeof *pd, M_DEVBUF, + M_NOWAIT))) + return(0); + pd->pd_tag = tag; + pd->pd_dev = dev; + LIST_INSERT_HEAD(&sc->sc_devs, pd, pd_next); + } } return (ret); |