git: e6fd5ca5458f - main - xdma pl330: Remove unused variables.
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 13 Apr 2022 23:09:53 UTC
The branch main has been updated by jhb:
URL: https://cgit.FreeBSD.org/src/commit/?id=e6fd5ca5458fb35df0265fdf8fd80bc1ef37f995
commit e6fd5ca5458fb35df0265fdf8fd80bc1ef37f995
Author: John Baldwin <jhb@FreeBSD.org>
AuthorDate: 2022-04-13 23:08:22 +0000
Commit: John Baldwin <jhb@FreeBSD.org>
CommitDate: 2022-04-13 23:08:22 +0000
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 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: