diff options
author | Guenter Roeck <linux@roeck-us.net> | 2013-10-14 18:32:48 +0200 |
---|---|---|
committer | Wim Van Sebroeck <wim@iguana.be> | 2013-11-17 19:38:02 +0100 |
commit | 67b9fbdf3602dfd525371d7b1f49346f1d11d37d (patch) | |
tree | 784bf2156e2d429af6e1ce7d218acd4d228aaab7 /drivers/watchdog/ts72xx_wdt.c | |
parent | watchdog: pcwd_usb: Use allocated buffer for usb_control_msg (diff) | |
download | linux-67b9fbdf3602dfd525371d7b1f49346f1d11d37d.tar.xz linux-67b9fbdf3602dfd525371d7b1f49346f1d11d37d.zip |
watchdog: ts72xx_wdt: Propagate return value from timeout_to_regval
timeout_to_regval() returns a valid error code. Might as well use it.
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
Diffstat (limited to '')
-rw-r--r-- | drivers/watchdog/ts72xx_wdt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/watchdog/ts72xx_wdt.c b/drivers/watchdog/ts72xx_wdt.c index df5dd55b9b3a..09d4831aa61f 100644 --- a/drivers/watchdog/ts72xx_wdt.c +++ b/drivers/watchdog/ts72xx_wdt.c @@ -192,7 +192,7 @@ static int ts72xx_wdt_open(struct inode *inode, struct file *file) dev_err(&wdt->pdev->dev, "failed to convert timeout (%d) to register value\n", timeout); - return -EINVAL; + return regval; } if (mutex_lock_interruptible(&wdt->lock)) |