aboutsummaryrefslogtreecommitdiff
path: root/sys/powerpc
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2022-04-13 23:08:24 +0000
committerJohn Baldwin <jhb@FreeBSD.org>2022-04-13 23:08:24 +0000
commita30eb84a5dc4cb3c7e50f4f01473eeeab8b5bbd3 (patch)
tree64277fe97815de8701732f185c8d19effbb3049d /sys/powerpc
parent1c311640c0a65cd5a0105481b69554b52c6017ae (diff)
downloadsrc-a30eb84a5dc4cb3c7e50f4f01473eeeab8b5bbd3.tar.gz
src-a30eb84a5dc4cb3c7e50f4f01473eeeab8b5bbd3.zip
powerpc mpc85xx: Remove unused variables.
Diffstat (limited to 'sys/powerpc')
-rw-r--r--sys/powerpc/mpc85xx/fsl_diu.c2
-rw-r--r--sys/powerpc/mpc85xx/pci_mpc85xx.c4
2 files changed, 0 insertions, 6 deletions
diff --git a/sys/powerpc/mpc85xx/fsl_diu.c b/sys/powerpc/mpc85xx/fsl_diu.c
index b116809011dc..c29df5e5393b 100644
--- a/sys/powerpc/mpc85xx/fsl_diu.c
+++ b/sys/powerpc/mpc85xx/fsl_diu.c
@@ -214,12 +214,10 @@ diu_intr(void *arg)
static int
diu_set_pxclk(device_t dev, unsigned int freq)
{
- phandle_t node;
unsigned long bus_freq;
uint32_t pxclk_set;
uint32_t clkdvd;
- node = ofw_bus_get_node(device_get_parent(dev));
if ((bus_freq = mpc85xx_get_platform_clock()) <= 0) {
device_printf(dev, "Unable to get bus frequency\n");
return (ENXIO);
diff --git a/sys/powerpc/mpc85xx/pci_mpc85xx.c b/sys/powerpc/mpc85xx/pci_mpc85xx.c
index 8d0c21342215..b6f7867f7f74 100644
--- a/sys/powerpc/mpc85xx/pci_mpc85xx.c
+++ b/sys/powerpc/mpc85xx/pci_mpc85xx.c
@@ -551,12 +551,10 @@ fsl_pcib_read_config(device_t dev, u_int bus, u_int slot, u_int func,
u_int reg, int bytes)
{
struct fsl_pcib_softc *sc = device_get_softc(dev);
- u_int devfn;
if (bus == sc->sc_busnr && !sc->sc_pcie &&
slot < PCI_SLOT_FIRST)
return (~0);
- devfn = DEVFN(bus, slot, func);
return (fsl_pcib_cfgread(sc, bus, slot, func, reg, bytes));
}
@@ -770,11 +768,9 @@ fsl_pcib_decode_win(phandle_t node, struct fsl_pcib_softc *sc)
static int fsl_pcib_alloc_msi(device_t dev, device_t child,
int count, int maxcount, int *irqs)
{
- struct fsl_pcib_softc *sc;
vmem_addr_t start;
int err, i;
- sc = device_get_softc(dev);
if (msi_vmem == NULL)
return (ENODEV);