Commit a3f764d2 authored by Ji-Ze Hong (Peter Hong)'s avatar Ji-Ze Hong (Peter Hong) Committed by Wim Van Sebroeck
Browse files

watchdog: f71808e_wdt: separate declaration and assignment



Separate declaration and assignment in watchdog_start()

Signed-off-by: default avatarJi-Ze Hong (Peter Hong) <hpeter+linux_kernel@gmail.com>
Reviewed-by: default avatarGuenter Roeck <linux@roeck-us.net>
Signed-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
Signed-off-by: default avatarWim Van Sebroeck <wim@linux-watchdog.org>
parent f6cc8b35
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -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;