summaryrefslogtreecommitdiffstats
path: root/drivers/watchdog/f71808e_wdt.c
diff options
context:
space:
mode:
authorJi-Ze Hong (Peter Hong) <hpeter@gmail.com>2019-03-27 14:42:50 +0800
committerWim Van Sebroeck <wim@linux-watchdog.org>2019-05-05 21:02:09 +0200
commita3f764d2eea537f6eb502b23f915d1caaec2b7ea (patch)
tree0c5e02164f463fdcb9dcd079095d9106605a5b70 /drivers/watchdog/f71808e_wdt.c
parentf6cc8b355c030ed673330b5fb31e5f6e546a33b4 (diff)
downloadlinux-a3f764d2eea537f6eb502b23f915d1caaec2b7ea.tar.bz2
watchdog: f71808e_wdt: separate declaration and assignment
Separate declaration and assignment in watchdog_start() Signed-off-by: Ji-Ze Hong (Peter Hong) <hpeter+linux_kernel@gmail.com> Reviewed-by: Guenter Roeck <linux@roeck-us.net> Signed-off-by: Guenter Roeck <linux@roeck-us.net> Signed-off-by: Wim Van Sebroeck <wim@linux-watchdog.org>
Diffstat (limited to 'drivers/watchdog/f71808e_wdt.c')
-rw-r--r--drivers/watchdog/f71808e_wdt.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/watchdog/f71808e_wdt.c b/drivers/watchdog/f71808e_wdt.c
index 9a1c761258ce..bd2ced9f39f4 100644
--- a/drivers/watchdog/f71808e_wdt.c
+++ b/drivers/watchdog/f71808e_wdt.c
@@ -338,8 +338,10 @@ static int f71862fg_pin_configure(unsigned short ioaddr)
static int watchdog_start(void)
{
+ int err;
+
/* Make sure we don't die as soon as the watchdog is enabled below */
- int err = watchdog_keepalive();
+ err = watchdog_keepalive();
if (err)
return err;