diff options
author | Felix Fietkau <nbd@openwrt.org> | 2014-06-10 09:05:40 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2014-06-10 09:05:40 +0000 |
commit | 3406e402ef24a3b1fc736ca1a4b0fd99259e61a9 (patch) | |
tree | 65a92a499513c41f6eae7a2952a01a0dc00ac5c7 /target/linux/atheros/patches-3.10/130-watchdog.patch | |
parent | 5427e47e59272c7e11554b1c654a997173c7f941 (diff) | |
download | mtk-20170518-3406e402ef24a3b1fc736ca1a4b0fd99259e61a9.zip mtk-20170518-3406e402ef24a3b1fc736ca1a4b0fd99259e61a9.tar.gz mtk-20170518-3406e402ef24a3b1fc736ca1a4b0fd99259e61a9.tar.bz2 |
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>
SVN-Revision: 41084
Diffstat (limited to 'target/linux/atheros/patches-3.10/130-watchdog.patch')
-rw-r--r-- | target/linux/atheros/patches-3.10/130-watchdog.patch | 5 |
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 8c61c91..f98b6b2 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(); |