dmaengine: ti: edma: remove unused edma_and function
authorTom Rix <trix@redhat.com>
Mon, 20 Mar 2023 23:12:09 +0000 (19:12 -0400)
committerVinod Koul <vkoul@kernel.org>
Fri, 31 Mar 2023 12:27:49 +0000 (17:57 +0530)
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>
drivers/dma/ti/edma.c

index fa06d7e..9ea91c6 100644 (file)
@@ -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);