xdma pl330: Remove unused variables.

This commit is contained in:
John Baldwin 2022-04-13 16:08:22 -07:00
parent 0a4089c734
commit e6fd5ca545

View file

@ -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: