提交 67b9fbdf 编写于 作者: G Guenter Roeck 提交者: Wim Van Sebroeck

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: NGuenter Roeck <linux@roeck-us.net>
Signed-off-by: NWim Van Sebroeck <wim@iguana.be>
上级 5412df0b
...@@ -192,7 +192,7 @@ static int ts72xx_wdt_open(struct inode *inode, struct file *file) ...@@ -192,7 +192,7 @@ static int ts72xx_wdt_open(struct inode *inode, struct file *file)
dev_err(&wdt->pdev->dev, dev_err(&wdt->pdev->dev,
"failed to convert timeout (%d) to register value\n", "failed to convert timeout (%d) to register value\n",
timeout); timeout);
return -EINVAL; return regval;
} }
if (mutex_lock_interruptible(&wdt->lock)) if (mutex_lock_interruptible(&wdt->lock))
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册