Skip to contentSkip to conversation

memory: ti-emif-sram: remove unused variable

PATCH In review Arnd Bergmann 2 participants 2 messages Dec 6, 2017

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 memory: ti-emif-sram: remove unused variable

The newly introduced driver causes a harmless warning for a variable that was evidently never used:

drivers/memory/ti-emif-pm.c: In function 'ti_emif_remove':
drivers/memory/ti-emif-pm.c:303:17: error: unused variable 'dev' [-Werror=unused-variable]

Fixes 8428e5ad750d ("memory: ti-emif-sram: introduce relocatable suspend/resume handlers")
---
 drivers/memory/ti-emif-pm.c | 1 -
 1 file changed, 1 deletion(-)
drivers/memory/ti-emif-pm.c +0 -1
index 4ea1514fb9b2..62a86c4bcd0b 100644
@@ -300,7 +300,6 @@ static int ti_emif_probe(struct platform_device *pdev)
 
 static int ti_emif_remove(struct platform_device *pdev)
 {
-	struct device *dev = &pdev->dev;
 	struct ti_emif_data *emif_data = emif_instance;
 
 	emif_instance = NULL;
Signature · 1 line
2.9.0
#1 lore raw
Quoted 9 lines · Arnd Bergmann

The newly introduced driver causes a harmless warning for a variable that was evidently never used:

drivers/memory/ti-emif-pm.c: In function 'ti_emif_remove':
drivers/memory/ti-emif-pm.c:303:17: error: unused variable 'dev' [-Werror=unused-variable]

Fixes 8428e5ad750d ("memory: ti-emif-sram: introduce relocatable suspend/resume handlers")

---

Applied !!