Skip to contentSkip to conversation

dmaengine: ti: edma: remove unused edma_and function

PATCH Applied Tom Rix 2 participants 2 messages Mar 20, 2023 – Mar 31, 2023

Subsystems (2)
lore
Share & tools
lore

Tom Rix

author
#0 lore raw

PATCH 1/1 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.

---
 drivers/dma/ti/edma.c | 8 --------
 1 file changed, 8 deletions(-)
drivers/dma/ti/edma.c +0 -8
index fa06d7e6d8e3..9ea91c640c32 100644
@@ -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);
Signature · 1 line
2.27.0
maintainer Applied
#1 lore raw
Quoted 6 lines · Tom Rix

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.

Applied, thanks

Signature · 1 line
~Vinod