Skip to content

Commit

Permalink
dmaengine: tegra: Remove unused switch case
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Akhil R authored and Vinod Koul committed May 19, 2022
1 parent 39b930b commit 360e4f4
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions drivers/dma/tegra186-gpc-dma.c
Original file line number Diff line number Diff line change
Expand Up @@ -829,10 +829,6 @@ static int get_transfer_param(struct tegra_dma_channel *tdc,
*slave_bw = tdc->dma_sconfig.src_addr_width;
*csr = TEGRA_GPCDMA_CSR_DMA_IO2MEM_FC;
return 0;
case DMA_MEM_TO_MEM:
*burst_size = tdc->dma_sconfig.src_addr_width;
*csr = TEGRA_GPCDMA_CSR_DMA_MEM2MEM;
return 0;
default:
dev_err(tdc2dev(tdc), "DMA direction is not supported\n");
}
Expand Down

0 comments on commit 360e4f4

Please sign in to comment.