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>
This commit is contained in:
Guenter Roeck authored and Wim Van Sebroeck committed 2013-11-17 19:38:02 +01:00
1 parent 5412df0bda
commit 67b9fbdf36
1 file changed
+1 -1
+1 -1
View File
@@ -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))