Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

watchdog: stmp3xxx: Remove unused variables

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' and 'dev' variables.

Signed-off-by: Fabio Estevam <fabio.estevam@nxp.com>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Wim Van Sebroeck <wim@iguana.be>

authored by

Fabio Estevam and committed by
Wim Van Sebroeck
9ca128a9 ab3f09fe

-3
-3
drivers/watchdog/stmp3xxx_rtc_wdt.c
··· 74 74 static int wdt_notify_sys(struct notifier_block *nb, unsigned long code, 75 75 void *unused) 76 76 { 77 - struct device *dev = watchdog_get_drvdata(&stmp3xxx_wdd); 78 - struct stmp3xxx_wdt_pdata *pdata = dev_get_platdata(dev); 79 - 80 77 switch (code) { 81 78 case SYS_DOWN: /* keep enabled, system might crash while going down */ 82 79 break;