projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f6cc8b3
)
watchdog: f71808e_wdt: separate declaration and assignment
author
Ji-Ze Hong (Peter Hong)
<hpeter@gmail.com>
Wed, 27 Mar 2019 06:42:50 +0000
(14:42 +0800)
committer
Wim 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
patch
|
blob
|
history
diff --git
a/drivers/watchdog/f71808e_wdt.c
b/drivers/watchdog/f71808e_wdt.c
index 9a1c761258ce4655b29ca46249df4e4a55cda64c..bd2ced9f39f47f4aae9be3877bc834639d7c2144 100644
(file)
--- 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;