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:
parent
f6cc8b355c
commit
a3f764d2ee
@ -338,8 +338,10 @@ static int f71862fg_pin_configure(unsigned short ioaddr)
|
|||||||
|
|
||||||
static int watchdog_start(void)
|
static int watchdog_start(void)
|
||||||
{
|
{
|
||||||
|
int err;
|
||||||
|
|
||||||
/* Make sure we don't die as soon as the watchdog is enabled below */
|
/* Make sure we don't die as soon as the watchdog is enabled below */
|
||||||
int err = watchdog_keepalive();
|
err = watchdog_keepalive();
|
||||||
if (err)
|
if (err)
|
||||||
return err;
|
return err;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user