mirror of
https://github.com/FEX-Emu/linux.git
synced 2024-12-16 14:02:10 +00:00
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:
parent
5412df0bda
commit
67b9fbdf36
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user