diff options
author | Guenter Roeck <linux@roeck-us.net> | 2013-10-14 20:32:48 +0400 |
---|---|---|
committer | Wim Van Sebroeck <wim@iguana.be> | 2013-11-17 22:38:02 +0400 |
commit | 67b9fbdf3602dfd525371d7b1f49346f1d11d37d (patch) | |
tree | 784bf2156e2d429af6e1ce7d218acd4d228aaab7 | |
parent | 5412df0bda90a2bdcef2771849ad5472b9ef8100 (diff) | |
download | linux-67b9fbdf3602dfd525371d7b1f49346f1d11d37d.tar.xz |
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>
-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)) |