watchdog: da9055: Don't update wdt_dev->timeout in da9055_wdt_set_timeout error path
authorAxel Lin <axel.lin@ingics.com>
Sat, 22 Dec 2012 03:07:01 +0000 (11:07 +0800)
committerWim Van Sebroeck <wim@iguana.be>
Wed, 2 Jan 2013 11:06:49 +0000 (12:06 +0100)
Otherwise, WDIOC_GETTIMEOUT returns wrong value if set_timeout fails.
This patch also removes unnecessary ret variable in da9055_wdt_ping function.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Signed-off-by: Wim Van Sebroeck <wim@iguana.be>

No differences found