From 3406e402ef24a3b1fc736ca1a4b0fd99259e61a9 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Tue, 10 Jun 2014 09:05:40 +0000 Subject: atheros: do not assignment in if condition Remove assignments from if conditions as suggested by checkpatch. Signed-off-by: Sergey Ryazanov SVN-Revision: 41084 --- target/linux/atheros/patches-3.10/130-watchdog.patch | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'target/linux/atheros/patches-3.10/130-watchdog.patch') 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(); -- cgit v1.2.3