summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2011-06-06 15:33:15 +0000
committerjhb <jhb@FreeBSD.org>2011-06-06 15:33:15 +0000
commitd046e38f5f20bee3d0f9e3c18f4300724ba9a20f (patch)
treead8282a9c27361d80357136d1d61f6269e00f6ce
parent257b06700106a3f81d0d0bb880b730e2f9468a39 (diff)
downloadFreeBSD-src-d046e38f5f20bee3d0f9e3c18f4300724ba9a20f.zip
FreeBSD-src-d046e38f5f20bee3d0f9e3c18f4300724ba9a20f.tar.gz
Some style fixes.
Submitted by: bde
-rw-r--r--sys/dev/puc/pucdata.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/sys/dev/puc/pucdata.c b/sys/dev/puc/pucdata.c
index a56971e..2b38d9b 100644
--- a/sys/dev/puc/pucdata.c
+++ b/sys/dev/puc/pucdata.c
@@ -51,12 +51,12 @@ static puc_config_f puc_config_amc;
static puc_config_f puc_config_diva;
static puc_config_f puc_config_exar;
static puc_config_f puc_config_icbook;
+static puc_config_f puc_config_oxford_pcie;
static puc_config_f puc_config_quatech;
static puc_config_f puc_config_syba;
static puc_config_f puc_config_siig;
static puc_config_f puc_config_timedia;
static puc_config_f puc_config_titan;
-static puc_config_f puc_config_oxford_pcie;
const struct puc_cfg puc_pci_devices[] = {
@@ -1366,14 +1366,12 @@ puc_config_oxford_pcie(struct puc_softc *sc, enum puc_cfg_cmd cmd, int port,
bar = puc_get_bar(sc, cfg->rid);
if (bar == NULL)
return (ENXIO);
-
for (idx = 0; idx < sc->sc_nports; idx++) {
- value = bus_read_1(bar->b_res, 0x1000 + (idx << 9)
- + 0x92);
+ value = bus_read_1(bar->b_res, 0x1000 + (idx << 9) +
+ 0x92);
bus_write_1(bar->b_res, 0x1000 + (idx << 9) + 0x92,
- value | 0x10);
+ value | 0x10);
}
-
return (0);
case PUC_CFG_GET_LEN:
*res = 0x200;
OpenPOWER on IntegriCloud