From 62392d8d28605d490e57fc17890586357f3d92a3 Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Fri, 13 Jun 2008 08:45:51 +0000 Subject: properly indent something horridly misleading --- sys/dev/pci/pci.c | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) (limited to 'sys/dev') 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); -- cgit v1.2.3