summaryrefslogtreecommitdiffstats
path: root/sys/mips/sibyte
diff options
context:
space:
mode:
authorneel <neel@FreeBSD.org>2010-02-05 02:40:42 +0000
committerneel <neel@FreeBSD.org>2010-02-05 02:40:42 +0000
commit39dbfe1f7618ec63e0648730f30c3263f05dbf23 (patch)
treeb5fe3b0590090282436c68f8ae0a436fe8f3a311 /sys/mips/sibyte
parent6d2c821afe54bd7c93679437db28b5e45052016b (diff)
downloadFreeBSD-src-39dbfe1f7618ec63e0648730f30c3263f05dbf23.zip
FreeBSD-src-39dbfe1f7618ec63e0648730f30c3263f05dbf23.tar.gz
style: don't need to use braces for single line control statements.
Diffstat (limited to 'sys/mips/sibyte')
-rw-r--r--sys/mips/sibyte/sb_zbpci.c15
1 files changed, 5 insertions, 10 deletions
diff --git a/sys/mips/sibyte/sb_zbpci.c b/sys/mips/sibyte/sb_zbpci.c
index cd0daea..4e57407 100644
--- a/sys/mips/sibyte/sb_zbpci.c
+++ b/sys/mips/sibyte/sb_zbpci.c
@@ -83,9 +83,8 @@ zbpci_attach(device_t dev)
size = (PCI_BUSMAX + 1) * (PCI_SLOTMAX + 1) * (PCI_FUNCMAX + 1) * 256;
res = bus_alloc_resource(dev, SYS_RES_MEMORY, &rid, CFG_PADDR_BASE,
CFG_PADDR_BASE + size - 1, size, 0);
- if (res == NULL) {
+ if (res == NULL)
panic("Cannot allocate resource for config space accesses.");
- }
/*
* Allocate KVA for accessing PCI config space.
@@ -97,25 +96,21 @@ zbpci_attach(device_t dev)
return (ENOMEM);
}
- for (n = 0; n < mp_ncpus; ++n) {
+ for (n = 0; n < mp_ncpus; ++n)
zbpci_config_space[n].vaddr = va + n * PAGE_SIZE;
- }
/*
* Sibyte has the PCI bus hierarchy rooted at bus 0 and HT-PCI
* hierarchy rooted at bus 1.
*/
- if (device_add_child(dev, "pci", 0) == NULL) {
+ if (device_add_child(dev, "pci", 0) == NULL)
panic("zbpci_attach: could not add pci bus 0.\n");
- }
- if (device_add_child(dev, "pci", 1) == NULL) {
+ if (device_add_child(dev, "pci", 1) == NULL)
panic("zbpci_attach: could not add pci bus 1.\n");
- }
- if (bootverbose) {
+ if (bootverbose)
device_printf(dev, "attached.\n");
- }
return (bus_generic_attach(dev));
}
OpenPOWER on IntegriCloud