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>
This commit is contained in:
Ji-Ze Hong (Peter Hong) 2019-03-27 14:42:50 +08:00 committed by Wim Van Sebroeck
parent f6cc8b355c
commit a3f764d2ee
1 changed files with 3 additions and 1 deletions

View File

@ -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;