diff mbox

dma: imx-dma.c: Remove unused function

Message ID 1419182302-9672-1-git-send-email-rickard_strandqvist@spectrumdigital.se (mailing list archive)
State Accepted
Headers show

Commit Message

Rickard Strandqvist Dec. 21, 2014, 5:18 p.m. UTC
Remove the function is_imx21_dma() that is not used anywhere.

This was partially found by using a static code analysis program called cppcheck.

Signed-off-by: Rickard Strandqvist <rickard_strandqvist@spectrumdigital.se>
---
 drivers/dma/imx-dma.c |    5 -----
 1 file changed, 5 deletions(-)

Comments

Vinod Koul Dec. 22, 2014, 3:35 p.m. UTC | #1
On Sun, Dec 21, 2014 at 06:18:22PM +0100, Rickard Strandqvist wrote:
> Remove the function is_imx21_dma() that is not used anywhere.
> 
> This was partially found by using a static code analysis program called cppcheck.
> 
Please ensure you use *right* subsystem name

Applied, thanks
diff mbox

Patch

diff --git a/drivers/dma/imx-dma.c b/drivers/dma/imx-dma.c
index 9d2c9e7..af1e643 100644
--- a/drivers/dma/imx-dma.c
+++ b/drivers/dma/imx-dma.c
@@ -230,11 +230,6 @@  static inline int is_imx1_dma(struct imxdma_engine *imxdma)
 	return imxdma->devtype == IMX1_DMA;
 }
 
-static inline int is_imx21_dma(struct imxdma_engine *imxdma)
-{
-	return imxdma->devtype == IMX21_DMA;
-}
-
 static inline int is_imx27_dma(struct imxdma_engine *imxdma)
 {
 	return imxdma->devtype == IMX27_DMA;