projects
/
linux-2.6-microblaze.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5412df0
)
watchdog: ts72xx_wdt: Propagate return value from timeout_to_regval
author
Guenter Roeck
<linux@roeck-us.net>
Mon, 14 Oct 2013 16:32:48 +0000
(09:32 -0700)
committer
Wim Van Sebroeck
<wim@iguana.be>
Sun, 17 Nov 2013 18:38:02 +0000
(19:38 +0100)
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>
drivers/watchdog/ts72xx_wdt.c
patch
|
blob
|
history
diff --git
a/drivers/watchdog/ts72xx_wdt.c
b/drivers/watchdog/ts72xx_wdt.c
index
df5dd55
..
09d4831
100644
(file)
--- 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)
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))