From e6fd5ca5458fb35df0265fdf8fd80bc1ef37f995 Mon Sep 17 00:00:00 2001 From: John Baldwin Date: Wed, 13 Apr 2022 16:08:22 -0700 Subject: [PATCH] xdma pl330: Remove unused variables. --- sys/dev/xdma/controller/pl330.c | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/sys/dev/xdma/controller/pl330.c b/sys/dev/xdma/controller/pl330.c index 3e0b6368cd7..5b3b538d44a 100644 --- a/sys/dev/xdma/controller/pl330.c +++ b/sys/dev/xdma/controller/pl330.c @@ -366,10 +366,6 @@ pl330_attach(device_t dev) static int pl330_detach(device_t dev) { - struct pl330_softc *sc; - - sc = device_get_softc(dev); - return (0); } @@ -408,9 +404,6 @@ static int pl330_channel_free(device_t dev, struct xdma_channel *xchan) { struct pl330_channel *chan; - struct pl330_softc *sc; - - sc = device_get_softc(dev); chan = (struct pl330_channel *)xchan->chan; chan->used = 0; @@ -576,9 +569,6 @@ static int pl330_channel_prep_sg(device_t dev, struct xdma_channel *xchan) { struct pl330_channel *chan; - struct pl330_softc *sc; - - sc = device_get_softc(dev); dprintf("%s(%d)\n", __func__, device_get_unit(dev)); @@ -591,13 +581,6 @@ pl330_channel_prep_sg(device_t dev, struct xdma_channel *xchan) static int pl330_channel_control(device_t dev, xdma_channel_t *xchan, int cmd) { - struct pl330_channel *chan; - struct pl330_softc *sc; - - sc = device_get_softc(dev); - - chan = (struct pl330_channel *)xchan->chan; - switch (cmd) { case XDMA_CMD_BEGIN: case XDMA_CMD_TERMINATE: