From: Ji-Ze Hong (Peter Hong) Date: Wed, 27 Mar 2019 06:42:50 +0000 (+0800) Subject: watchdog: f71808e_wdt: separate declaration and assignment X-Git-Tag: v5.4-rc1~1007^2~110 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a3f764d2eea537f6eb502b23f915d1caaec2b7ea;p=platform%2Fkernel%2Flinux-rpi.git watchdog: f71808e_wdt: separate declaration and assignment Separate declaration and assignment in watchdog_start() Signed-off-by: Ji-Ze Hong (Peter Hong) Reviewed-by: Guenter Roeck Signed-off-by: Guenter Roeck Signed-off-by: Wim Van Sebroeck --- diff --git a/drivers/watchdog/f71808e_wdt.c b/drivers/watchdog/f71808e_wdt.c index 9a1c761..bd2ced9 100644 --- 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;