mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
watchdog: stmp3xxx: Remove unused variables
Commit 8d2fa17151 ("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 <[email protected]>
Signed-off-by: Guenter Roeck <[email protected]>
Signed-off-by: Wim Van Sebroeck <[email protected]>
This commit is contained in:
parent
ab3f09fe16
commit
9ca128a99f
1 changed files with 0 additions and 3 deletions
|
|
@ -74,9 +74,6 @@ static struct watchdog_device stmp3xxx_wdd = {
|
|||
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 */
|
||||
break;
|
||||
|
|
|
|||
Loading…
Reference in a new issue