aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/atheros/patches-3.10/130-watchdog.patch
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2014-06-10 09:05:40 +0000
committerFelix Fietkau <nbd@openwrt.org>2014-06-10 09:05:40 +0000
commit5bdef6a3578fc2a20a75a39f9cf6541f1d89d072 (patch)
tree9eed2b72d99c0a7a8bafdd1dd53016e272a18968 /target/linux/atheros/patches-3.10/130-watchdog.patch
parent9206683f4bc211f1a962a7c174dc488081dff349 (diff)
downloadupstream-5bdef6a3578fc2a20a75a39f9cf6541f1d89d072.tar.gz
upstream-5bdef6a3578fc2a20a75a39f9cf6541f1d89d072.tar.bz2
upstream-5bdef6a3578fc2a20a75a39f9cf6541f1d89d072.zip
atheros: do not assignment in if condition
Remove assignments from if conditions as suggested by checkpatch. Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41084 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/atheros/patches-3.10/130-watchdog.patch')
-rw-r--r--target/linux/atheros/patches-3.10/130-watchdog.patch5
1 files changed, 3 insertions, 2 deletions
diff --git a/target/linux/atheros/patches-3.10/130-watchdog.patch b/target/linux/atheros/patches-3.10/130-watchdog.patch
index 8c61c91a0a..f98b6b2168 100644
--- a/target/linux/atheros/patches-3.10/130-watchdog.patch
+++ b/target/linux/atheros/patches-3.10/130-watchdog.patch
@@ -1,6 +1,6 @@
--- /dev/null
+++ b/drivers/watchdog/ar2315-wtd.c
-@@ -0,0 +1,199 @@
+@@ -0,0 +1,200 @@
+/*
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
@@ -117,7 +117,8 @@
+ break;
+
+ case WDIOC_SETTIMEOUT:
-+ if((ret = get_user(new_wdt_timeout, (int __user *)arg)))
++ ret = get_user(new_wdt_timeout, (int __user *)arg);
++ if (ret)
+ break;
+ wdt_timeout = HEARTBEAT(new_wdt_timeout);
+ ar2315_wdt_enable();