atheros: do not assignment in if condition
[openwrt.git] / target / linux / atheros / patches-3.10 / 130-watchdog.patch
index 8c61c91..f98b6b2 100644 (file)
@@ -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
 +                      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();