[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20220426101913.43335-3-akhilrajeev@nvidia.com>
Date: Tue, 26 Apr 2022 15:49:13 +0530
From: Akhil R <akhilrajeev@...dia.com>
To: <devicetree@...r.kernel.org>, <dmaengine@...r.kernel.org>,
<jonathanh@...dia.com>, <kyarlagadda@...dia.com>,
<ldewangan@...dia.com>, <linux-kernel@...r.kernel.org>,
<linux-tegra@...r.kernel.org>, <p.zabel@...gutronix.de>,
<rgumasta@...dia.com>, <robh+dt@...nel.org>,
<thierry.reding@...il.com>, <nathan@...nel.org>,
<vkoul@...nel.org>, <dan.carpenter@...cle.com>
CC: <akhilrajeev@...dia.com>
Subject: [PATCH v2 2/2] 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@...dia.com>
---
drivers/dma/tegra186-gpc-dma.c | 4 ----
1 file changed, 4 deletions(-)
diff --git a/drivers/dma/tegra186-gpc-dma.c b/drivers/dma/tegra186-gpc-dma.c
index a0dbafa07ec9..6b8d34165176 100644
--- a/drivers/dma/tegra186-gpc-dma.c
+++ b/drivers/dma/tegra186-gpc-dma.c
@@ -830,10 +830,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");
}
--
2.17.1
Powered by blists - more mailing lists