Skip to content

Commit 360e4f4

Browse files
akhilr-nvvinodkoul
authored andcommitted
dmaengine: tegra: Remove unused switch case
Remove unused switch case in get_transfer_param() function. The function is not called for MEM_TO_MEM transfers. Signed-off-by: Akhil R <akhilrajeev@nvidia.com> Link: https://lore.kernel.org/r/20220426101913.43335-3-akhilrajeev@nvidia.com Signed-off-by: Vinod Koul <vkoul@kernel.org>
1 parent 39b930b commit 360e4f4

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

drivers/dma/tegra186-gpc-dma.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -829,10 +829,6 @@ static int get_transfer_param(struct tegra_dma_channel *tdc,
829829
*slave_bw = tdc->dma_sconfig.src_addr_width;
830830
*csr = TEGRA_GPCDMA_CSR_DMA_IO2MEM_FC;
831831
return 0;
832-
case DMA_MEM_TO_MEM:
833-
*burst_size = tdc->dma_sconfig.src_addr_width;
834-
*csr = TEGRA_GPCDMA_CSR_DMA_MEM2MEM;
835-
return 0;
836832
default:
837833
dev_err(tdc2dev(tdc), "DMA direction is not supported\n");
838834
}

0 commit comments

Comments
 (0)