Skip to contentSkip to conversation

ARM: imx: mx31moboard: Remove unused 'dma' variable

PATCH New Fabio Estevam 2 participants 2 messages Sep 4, 2017

Subsystems (3)
lore
Share & tools
lore

Fabio Estevam

author reviewer
#0 lore raw

PATCH 1/1 ARM: imx: mx31moboard: Remove unused 'dma' variable

From: Fabio Estevam <[email protected]>

Commit 2436bdcda53f ("dma-coherent: remove the DMA_MEMORY_MAP and DMA_MEMORY_IO flags") missed to remove the 'dma' variable causing the following build warning:

arch/arm/mach-imx/mach-mx31moboard.c:478:6: warning: unused variable 'dma' [-Wunused-variable]

Remove the unused 'dma' variable.

---
This applies against linux-next 20170904.

 arch/arm/mach-imx/mach-mx31moboard.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/mach-imx/mach-mx31moboard.c +1 -1
index 3cd0309..7716f83 100644
@@ -475,7 +475,7 @@ static phys_addr_t mx3_camera_base __initdata;
 
 static int __init mx31moboard_init_cam(void)
 {
-	int dma, ret;
+	int ret;
 	struct platform_device *pdev;
 
 	imx31_add_ipu_core();
Signature · 1 line
2.7.4
#1 lore raw

PATCH 1/1 ARM: imx: mx31moboard: Remove unused 'dma' variable

Thanks Fabio,

applied to the dma-mapping tree.