diff options
author | Vinod Koul <vinod.koul@intel.com> | 2016-07-08 10:43:27 +0530 |
---|---|---|
committer | Vinod Koul <vinod.koul@intel.com> | 2016-07-23 16:07:28 +0530 |
commit | 0d605ba0b8ce7f5963124853774cc9bd84589a99 (patch) | |
tree | 5205e6dfe881162d945fe03b092add032c098a02 /drivers/dma | |
parent | 24a1b5a011b0d223ec0d97f6f69cd4d66101684b (diff) | |
download | linux-0d605ba0b8ce7f5963124853774cc9bd84589a99.tar.gz linux-0d605ba0b8ce7f5963124853774cc9bd84589a99.tar.bz2 linux-0d605ba0b8ce7f5963124853774cc9bd84589a99.zip |
dmaengine: imx-sdma: remove assignment never used
David reported:
[drivers/dma/imx-sdma.c:769]: (style) Variable 'emi_2_emi' is assigned a value that is never used
Since emi_2_emi is never used afterwards, remove thsi as well
Reported-by: David Binderman <dcb314@hotmail.com>
Cc: Sascha Hauer <s.hauer@pengutronix.de>
Cc: Fabio Estevam <fabio.estevam@freescale.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Diffstat (limited to 'drivers/dma')
-rw-r--r-- | drivers/dma/imx-sdma.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/dma/imx-sdma.c b/drivers/dma/imx-sdma.c index 584cce992f0d..03ec76fc22ff 100644 --- a/drivers/dma/imx-sdma.c +++ b/drivers/dma/imx-sdma.c @@ -752,7 +752,7 @@ static void sdma_get_pc(struct sdma_channel *sdmac, * These are needed once we start to support transfers between * two peripherals or memory-to-memory transfers */ - int per_2_per = 0, emi_2_emi = 0; + int per_2_per = 0; sdmac->pc_from_device = 0; sdmac->pc_to_device = 0; @@ -760,7 +760,6 @@ static void sdma_get_pc(struct sdma_channel *sdmac, switch (peripheral_type) { case IMX_DMATYPE_MEMORY: - emi_2_emi = sdma->script_addrs->ap_2_ap_addr; break; case IMX_DMATYPE_DSP: emi_2_per = sdma->script_addrs->bp_2_ap_addr; |