watchdog: f71808e_wdt: separate declaration and assignment
authorJi-Ze Hong (Peter Hong) <hpeter@gmail.com>
Wed, 27 Mar 2019 06:42:50 +0000 (14:42 +0800)
committerWim Van Sebroeck <wim@linux-watchdog.org>
Sun, 5 May 2019 19:02:09 +0000 (21:02 +0200)
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>
drivers/watchdog/f71808e_wdt.c

index 9a1c761..bd2ced9 100644 (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;