mirror of
https://github.com/torvalds/linux.git
synced 2024-11-26 14:12:06 +00:00
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>
This commit is contained in:
parent
39b930bec8
commit
360e4f4e3f
@ -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");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user