git: 0146e4ce2f94 - main - axidma: Remove unused variables.
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 12 Apr 2022 21:59:08 UTC
The branch main has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=0146e4ce2f9425926f2933bf0eb312f2ac937091 commit 0146e4ce2f9425926f2933bf0eb312f2ac937091 Author: John Baldwin <jhb@FreeBSD.org> AuthorDate: 2022-04-12 21:58:57 +0000 Commit: John Baldwin <jhb@FreeBSD.org> CommitDate: 2022-04-12 21:58:57 +0000 axidma: Remove unused variables. --- sys/dev/xilinx/axidma.c | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/sys/dev/xilinx/axidma.c b/sys/dev/xilinx/axidma.c index 0512b3e06d54..be3fcf17d20e 100644 --- a/sys/dev/xilinx/axidma.c +++ b/sys/dev/xilinx/axidma.c @@ -318,9 +318,7 @@ static int axidma_desc_free(struct axidma_softc *sc, struct axidma_channel *chan) { struct xdma_channel *xchan; - int nsegments; - nsegments = chan->descs_num; xchan = chan->xchan; free(chan->descs, M_DEVBUF); @@ -463,7 +461,6 @@ axidma_channel_submit_sg(device_t dev, struct xdma_channel *xchan, uint32_t len; uint32_t tmp; int i; - int tail; dprintf("%s: sg_n %d\n", __func__, sg_n); @@ -476,8 +473,6 @@ axidma_channel_submit_sg(device_t dev, struct xdma_channel *xchan, if (sg_n == 0) return (0); - tail = chan->idx_head; - tmp = 0; for (i = 0; i < sg_n; i++) { @@ -577,12 +572,6 @@ axidma_channel_prep_sg(device_t dev, struct xdma_channel *xchan) static int axidma_channel_control(device_t dev, xdma_channel_t *xchan, int cmd) { - struct axidma_channel *chan; - struct axidma_softc *sc; - - sc = device_get_softc(dev); - - chan = (struct axidma_channel *)xchan->chan; switch (cmd) { case XDMA_CMD_BEGIN: