Skip to content

Commit

Permalink
watchdog: ts72xx_wdt: Propagate return value from timeout_to_regval
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Guenter Roeck authored and Wim Van Sebroeck committed Nov 17, 2013
1 parent 5412df0 commit 67b9fbd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/watchdog/ts72xx_wdt.c
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit 67b9fbd

Please sign in to comment.