summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2006-10-12 03:05:45 +0000
committerimp <imp@FreeBSD.org>2006-10-12 03:05:45 +0000
commita44c175cd043cf6351d1b4fd8714b0a915298ecc (patch)
tree1d2a860135a63435a176bc39628a97ea6c928277
parentf9b4142a67bb03202c25ec5da29ccd935d787c1c (diff)
downloadFreeBSD-src-a44c175cd043cf6351d1b4fd8714b0a915298ecc.zip
FreeBSD-src-a44c175cd043cf6351d1b4fd8714b0a915298ecc.tar.gz
Remove redundant casts. The casts inside the macros should be
sufficient (or fixed if not).
-rw-r--r--sys/dev/pci/pci_pci.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/dev/pci/pci_pci.c b/sys/dev/pci/pci_pci.c
index d156235..b883e2c 100644
--- a/sys/dev/pci/pci_pci.c
+++ b/sys/dev/pci/pci_pci.c
@@ -148,10 +148,10 @@ pcib_attach_common(device_t dev)
if (sc->command & PCIM_CMD_MEMEN) {
sc->membase = PCI_PPBMEMBASE(0, pci_read_config(dev, PCIR_MEMBASE_1, 2));
sc->memlimit = PCI_PPBMEMLIMIT(0, pci_read_config(dev, PCIR_MEMLIMIT_1, 2));
- sc->pmembase = PCI_PPBMEMBASE((pci_addr_t)pci_read_config(dev, PCIR_PMBASEH_1, 4),
- pci_read_config(dev, PCIR_PMBASEL_1, 2));
- sc->pmemlimit = PCI_PPBMEMLIMIT((pci_addr_t)pci_read_config(dev, PCIR_PMLIMITH_1, 4),
- pci_read_config(dev, PCIR_PMLIMITL_1, 2));
+ sc->pmembase = PCI_PPBMEMBASE(pci_read_config(dev, PCIR_PMBASEH_1, 4),
+ pci_read_config(dev, PCIR_PMBASEL_1, 2));
+ sc->pmemlimit = PCI_PPBMEMLIMIT(pci_read_config(dev, PCIR_PMLIMITH_1, 4),
+ pci_read_config(dev, PCIR_PMLIMITL_1, 2));
}
/*
OpenPOWER on IntegriCloud