From: Aaro Koskinen Date: Sun, 23 Dec 2012 20:03:36 +0000 (+0200) Subject: watchdog: omap_wdt: eliminate unused variable and a compiler warning X-Git-Tag: firefly_0821_release~3680^2~1319^2~1 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=412b3729dd0234771c67452b8999191f1e8d8630;p=firefly-linux-kernel-4.4.55.git watchdog: omap_wdt: eliminate unused variable and a compiler warning We forgot to delete this in the commit 4f4753d9 (watchdog: omap_wdt: convert to devm_ functions), and as a result the following compilation warning was introduced: drivers/watchdog/omap_wdt.c: In function 'omap_wdt_remove': drivers/watchdog/omap_wdt.c:299:19: warning: unused variable 'res' [-Wunused-variable] Signed-off-by: Aaro Koskinen Reviewed-by: Paul Walmsley Signed-off-by: Wim Van Sebroeck --- diff --git a/drivers/watchdog/omap_wdt.c b/drivers/watchdog/omap_wdt.c index 34ed61ea02b4..b0e541d022e6 100644 --- a/drivers/watchdog/omap_wdt.c +++ b/drivers/watchdog/omap_wdt.c @@ -296,7 +296,6 @@ static int omap_wdt_remove(struct platform_device *pdev) { struct watchdog_device *wdog = platform_get_drvdata(pdev); struct omap_wdt_dev *wdev = watchdog_get_drvdata(wdog); - struct resource *res = platform_get_resource(pdev, IORESOURCE_MEM, 0); pm_runtime_disable(wdev->dev); watchdog_unregister_device(wdog);