diff mbox series

memory: ti-emif-sram: remove unused variable

Message ID 20171206141322.598156-1-arnd@arndb.de
State Accepted
Commit 84a1695a6f925291f301951498fd7b56d3cb40a2
Headers show
Series memory: ti-emif-sram: remove unused variable | expand

Commit Message

Arnd Bergmann Dec. 6, 2017, 2:13 p.m. UTC
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")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>

---
 drivers/memory/ti-emif-pm.c | 1 -
 1 file changed, 1 deletion(-)

-- 
2.9.0

Comments

Santosh Shilimkar Dec. 6, 2017, 5:55 p.m. UTC | #1
On 12/6/17 6:13 AM, Arnd Bergmann wrote:
> 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")

> Signed-off-by: Arnd Bergmann <arnd@arndb.de>

> ---

Applied !!
diff mbox series

Patch

diff --git a/drivers/memory/ti-emif-pm.c b/drivers/memory/ti-emif-pm.c
index 4ea1514fb9b2..62a86c4bcd0b 100644
--- a/drivers/memory/ti-emif-pm.c
+++ b/drivers/memory/ti-emif-pm.c
@@ -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;