watchdog: stmp3xxx: Remove unused variable
Subsystems (2)
PATCH 1/1 watchdog: stmp3xxx: Remove unused variable
Commit 8d2fa17151ea3 ("watchdog: stmp3xxx: Stop the watchdog on system halt") introduced the following build warning:
drivers/watchdog/stmp3xxx_rtc_wdt.c: In function 'wdt_notify_sys':drivers/watchdog/stmp3xxx_rtc_wdt.c:78:29: warning: unused variable 'pdata' [-Wunused-variable]
Remove the unused 'pdata' variable.
Signed-off-by Fabio Estevam <[email protected]>
--- drivers/watchdog/stmp3xxx_rtc_wdt.c | 1 - 1 file changed, 1 deletion(-)
drivers/watchdog/stmp3xxx_rtc_wdt.c +0 -1
@@ -75,7 +75,6 @@ static int wdt_notify_sys(struct notifier_block *nb, unsigned long code, void *unused) {struct device *dev =watchdog_get_drvdata (&stmp3xxx_wdd); -struct stmp3xxx_wdt_pdata *pdata =dev_get_platdata (dev);switch (code) {case SYS_DOWN :/* keep enabled, system might crash while going down */
Signature · 1 line
1.9.1