Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0d605ba0 authored by Vinod Koul's avatar Vinod Koul
Browse files

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: default avatarDavid Binderman <dcb314@hotmail.com>
Cc: Sascha Hauer <s.hauer@pengutronix.de>
Cc: Fabio Estevam <fabio.estevam@freescale.com>
Signed-off-by: default avatarVinod Koul <vinod.koul@intel.com>
parent 24a1b5a0
Loading
Loading
Loading
Loading
+1 −2
Original line number Original line Diff line number Diff line
@@ -752,7 +752,7 @@ static void sdma_get_pc(struct sdma_channel *sdmac,
	 * These are needed once we start to support transfers between
	 * These are needed once we start to support transfers between
	 * two peripherals or memory-to-memory transfers
	 * 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_from_device = 0;
	sdmac->pc_to_device = 0;
	sdmac->pc_to_device = 0;
@@ -760,7 +760,6 @@ static void sdma_get_pc(struct sdma_channel *sdmac,


	switch (peripheral_type) {
	switch (peripheral_type) {
	case IMX_DMATYPE_MEMORY:
	case IMX_DMATYPE_MEMORY:
		emi_2_emi = sdma->script_addrs->ap_2_ap_addr;
		break;
		break;
	case IMX_DMATYPE_DSP:
	case IMX_DMATYPE_DSP:
		emi_2_per = sdma->script_addrs->bp_2_ap_addr;
		emi_2_per = sdma->script_addrs->bp_2_ap_addr;