aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/xdma
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2022-04-13 23:08:22 +0000
committerJohn Baldwin <jhb@FreeBSD.org>2022-04-13 23:08:22 +0000
commite6fd5ca5458fb35df0265fdf8fd80bc1ef37f995 (patch)
tree1a385915eb1edd1dbbe9561492ed9d948466412c /sys/dev/xdma
parent0a4089c734a26b9bb9c84ec6df2010414db38632 (diff)
Diffstat (limited to 'sys/dev/xdma')
-rw-r--r--sys/dev/xdma/controller/pl330.c17
1 files changed, 0 insertions, 17 deletions
diff --git a/sys/dev/xdma/controller/pl330.c b/sys/dev/xdma/controller/pl330.c
index 3e0b6368cd72..5b3b538d44a5 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: