git: 1624badace9f - main - imx6_ssi: Remove unused variables, #if 0 variables only used under #if 0.
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 09 Apr 2022 01:31:49 UTC
The branch main has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=1624badace9fc04c41525be61cf898e85c85e672 commit 1624badace9fc04c41525be61cf898e85c85e672 Author: John Baldwin <jhb@FreeBSD.org> AuthorDate: 2022-04-09 01:31:29 +0000 Commit: John Baldwin <jhb@FreeBSD.org> CommitDate: 2022-04-09 01:31:29 +0000 imx6_ssi: Remove unused variables, #if 0 variables only used under #if 0. --- sys/arm/freescale/imx/imx6_ssi.c | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/sys/arm/freescale/imx/imx6_ssi.c b/sys/arm/freescale/imx/imx6_ssi.c index 2330978849e9..8871e2dfbbfe 100644 --- a/sys/arm/freescale/imx/imx6_ssi.c +++ b/sys/arm/freescale/imx/imx6_ssi.c @@ -435,7 +435,7 @@ static int find_sdma_controller(struct sc_info *sc) { struct sdma_softc *sdma_sc; - phandle_t node, sdma_node; + phandle_t node; device_t sdma_dev; pcell_t dts_value[DMAS_TOTAL]; int len; @@ -458,8 +458,6 @@ find_sdma_controller(struct sc_info *sc) sc->sdma_ev_rx = dts_value[1]; sc->sdma_ev_tx = dts_value[5]; - sdma_node = OF_node_from_xref(dts_value[0]); - sdma_sc = NULL; sdma_dev = devclass_get_device(devclass_find("sdma"), 0); @@ -659,17 +657,17 @@ ssi_probe(device_t dev) static void ssi_intr(void *arg) { +#if 0 struct sc_pcminfo *scp; - struct sc_chinfo *ch; struct sc_info *sc; - - scp = arg; + + scp = arg; sc = scp->sc; - ch = &scp->chan[0]; +#endif /* We don't use SSI interrupt */ #if 0 - device_printf(sc->dev, "SSI Intr 0x%08x\n", + device_printf(scp->sc->dev, "SSI Intr 0x%08x\n", READ4(sc, SSI_SISR)); #endif }