summaryrefslogtreecommitdiffstats
path: root/drivers/dma
diff options
context:
space:
mode:
authorTom Rix <trix@redhat.com>2023-03-20 19:12:09 -0400
committerVinod Koul <vkoul@kernel.org>2023-03-31 17:57:49 +0530
commit3366c6fe2769fe653107626b3273e03156d9cac8 (patch)
treee072dcda919640ea3d4e2e7feb9f3ea45907ce9b /drivers/dma
parente9f92b9999055110249dacdc5f1a6dfda2a155f6 (diff)
downloadlinux-3366c6fe2769fe653107626b3273e03156d9cac8.tar.gz
linux-3366c6fe2769fe653107626b3273e03156d9cac8.tar.bz2
linux-3366c6fe2769fe653107626b3273e03156d9cac8.zip
dmaengine: ti: edma: remove unused edma_and function
clang with W=1 reports drivers/dma/ti/edma.c:321:20: error: unused function 'edma_and' [-Werror,-Wunused-function] static inline void edma_and(struct edma_cc *ecc, int offset, unsigned and) ^ This function is not used, so remove it. Signed-off-by: Tom Rix <trix@redhat.com> Link: https://lore.kernel.org/r/20230320231209.1728940-1-trix@redhat.com Signed-off-by: Vinod Koul <vkoul@kernel.org>
Diffstat (limited to 'drivers/dma')
-rw-r--r--drivers/dma/ti/edma.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/drivers/dma/ti/edma.c b/drivers/dma/ti/edma.c
index fa06d7e6d8e3..9ea91c640c32 100644
--- a/drivers/dma/ti/edma.c
+++ b/drivers/dma/ti/edma.c
@@ -318,14 +318,6 @@ static inline void edma_modify(struct edma_cc *ecc, int offset, unsigned and,
edma_write(ecc, offset, val);
}
-static inline void edma_and(struct edma_cc *ecc, int offset, unsigned and)
-{
- unsigned val = edma_read(ecc, offset);
-
- val &= and;
- edma_write(ecc, offset, val);
-}
-
static inline void edma_or(struct edma_cc *ecc, int offset, unsigned or)
{
unsigned val = edma_read(ecc, offset);