All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] memory: ti-emif-sram: remove unused variable
@ 2017-12-06 14:13 Arnd Bergmann
  2017-12-06 17:55 ` santosh.shilimkar
  0 siblings, 1 reply; 2+ messages in thread
From: Arnd Bergmann @ 2017-12-06 14:13 UTC (permalink / raw)
  To: Santosh Shilimkar
  Cc: Arnd Bergmann, Tony Lindgren, Dave Gerlach, linux-kernel

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(-)

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;
-- 
2.9.0

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] memory: ti-emif-sram: remove unused variable
  2017-12-06 14:13 [PATCH] memory: ti-emif-sram: remove unused variable Arnd Bergmann
@ 2017-12-06 17:55 ` santosh.shilimkar
  0 siblings, 0 replies; 2+ messages in thread
From: santosh.shilimkar @ 2017-12-06 17:55 UTC (permalink / raw)
  To: Arnd Bergmann, Santosh Shilimkar
  Cc: Tony Lindgren, Dave Gerlach, linux-kernel

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 !!

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-12-06 17:55 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-12-06 14:13 [PATCH] memory: ti-emif-sram: remove unused variable Arnd Bergmann
2017-12-06 17:55 ` santosh.shilimkar

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.