diff options
author | Akhil R <akhilrajeev@nvidia.com> | 2022-04-26 13:19:13 +0300 |
---|---|---|
committer | Vinod Koul <vkoul@kernel.org> | 2022-05-19 21:13:41 +0300 |
commit | 360e4f4e3fcceb9c24ee509f9eb4ed48759b3918 (patch) | |
tree | 7ebf160f995860a86371ee8529ac2bebf555258c | |
parent | 39b930bec80e7af4faae4caf4a36464a6d003bed (diff) | |
download | linux-360e4f4e3fcceb9c24ee509f9eb4ed48759b3918.tar.xz |
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>
-rw-r--r-- | drivers/dma/tegra186-gpc-dma.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/dma/tegra186-gpc-dma.c b/drivers/dma/tegra186-gpc-dma.c index b33c9b7770d5..05cd451f541d 100644 --- a/drivers/dma/tegra186-gpc-dma.c +++ b/drivers/dma/tegra186-gpc-dma.c @@ -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"); } |