projects
/
firefly-linux-kernel-4.4.55.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
rk: revert to v3.10
[firefly-linux-kernel-4.4.55.git]
/
drivers
/
watchdog
/
ts72xx_wdt.c
diff --git
a/drivers/watchdog/ts72xx_wdt.c
b/drivers/watchdog/ts72xx_wdt.c
index 9ad2bd344eb41f5c0c4380f14324857fe7f40969..b8a92459f10f354d763a1e9d3995e28389d8fda6 100644
(file)
--- a/
drivers/watchdog/ts72xx_wdt.c
+++ b/
drivers/watchdog/ts72xx_wdt.c
@@
-310,8
+310,7
@@
static long ts72xx_wdt_ioctl(struct file *file, unsigned int cmd,
case WDIOC_GETSTATUS:
case WDIOC_GETBOOTSTATUS:
- error = put_user(0, p);
- break;
+ return put_user(0, p);
case WDIOC_KEEPALIVE:
ts72xx_wdt_kick(wdt);