diff options
author | Guenter Roeck <linux@roeck-us.net> | 2013-10-14 12:32:48 -0400 |
---|---|---|
committer | Wim Van Sebroeck <wim@iguana.be> | 2013-11-17 13:38:02 -0500 |
commit | 67b9fbdf3602dfd525371d7b1f49346f1d11d37d (patch) | |
tree | 784bf2156e2d429af6e1ce7d218acd4d228aaab7 /drivers/watchdog | |
parent | 5412df0bda90a2bdcef2771849ad5472b9ef8100 (diff) |
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 'drivers/watchdog')
-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) | |||
192 | dev_err(&wdt->pdev->dev, | 192 | dev_err(&wdt->pdev->dev, |
193 | "failed to convert timeout (%d) to register value\n", | 193 | "failed to convert timeout (%d) to register value\n", |
194 | timeout); | 194 | timeout); |
195 | return -EINVAL; | 195 | return regval; |
196 | } | 196 | } |
197 | 197 | ||
198 | if (mutex_lock_interruptible(&wdt->lock)) | 198 | if (mutex_lock_interruptible(&wdt->lock)) |