[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20221018083820.25297-1-jiapeng.chong@linux.alibaba.com>
Date: Tue, 18 Oct 2022 16:38:20 +0800
From: Jiapeng Chong <jiapeng.chong@...ux.alibaba.com>
To: peter.ujfalusi@...il.com
Cc: vkoul@...nel.org, dmaengine@...r.kernel.org,
linux-kernel@...r.kernel.org,
Jiapeng Chong <jiapeng.chong@...ux.alibaba.com>,
Abaci Robot <abaci@...ux.alibaba.com>
Subject: [PATCH] dmaengine: ti: edma: Remove the unused function edma_and()
The function edma_and() is defined in the edma.c file, but not called
elsewhere, so remove this unused function.
drivers/dma/ti/edma.c:321:20: warning: unused function 'edma_and'.
Link: https://bugzilla.openanolis.cn/show_bug.cgi?id=2430
Reported-by: Abaci Robot <abaci@...ux.alibaba.com>
Signed-off-by: Jiapeng Chong <jiapeng.chong@...ux.alibaba.com>
---
drivers/dma/ti/edma.c | 8 --------
1 file changed, 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);
--
2.20.1.7.g153144c
Powered by blists - more mailing lists