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:32 +0000
committerFelix Fietkau <nbd@openwrt.org>2014-06-10 09:05:32 +0000
commit19c6fdf34a06948c189eb44108b0dd1b413a4a08 (patch)
tree99ba128938a18f1e2377bd4b5a7d41e485b7523a /target/linux/atheros/patches-3.10/130-watchdog.patch
parentbb7b461319927cb02161631e226a5d06717da094 (diff)
downloadmaster-187ad058-19c6fdf34a06948c189eb44108b0dd1b413a4a08.tar.gz
master-187ad058-19c6fdf34a06948c189eb44108b0dd1b413a4a08.tar.bz2
master-187ad058-19c6fdf34a06948c189eb44108b0dd1b413a4a08.zip
atheros: parenthesis around complex macroses value
Use parenthesis around complex macroses value as suggested by checkpatch. Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41082 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.patch2
1 files changed, 1 insertions, 1 deletions
diff --git a/target/linux/atheros/patches-3.10/130-watchdog.patch b/target/linux/atheros/patches-3.10/130-watchdog.patch
index b13c42d5ec..8c61c91a0a 100644
--- a/target/linux/atheros/patches-3.10/130-watchdog.patch
+++ b/target/linux/atheros/patches-3.10/130-watchdog.patch
@@ -41,7 +41,7 @@
+#include <ar231x.h>
+
+#define CLOCK_RATE 40000000
-+#define HEARTBEAT(x) (x < 1 || x > 90)?(20):(x)
++#define HEARTBEAT(x) (x < 1 || x > 90 ? 20 : x)
+
+static int wdt_timeout = 20;
+static int started = 0;