diff options
author | Felix Fietkau <nbd@openwrt.org> | 2014-06-10 09:05:51 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2014-06-10 09:05:51 +0000 |
commit | 7b39c7666012a62e7d3a381dc71e5101898dc19a (patch) | |
tree | 47485b07848d2944e53deec262da630d7fa48bd6 /target/linux/atheros/patches-3.10/130-watchdog.patch | |
parent | 29a33c9e0a811c77e96450bcbadb4dfb9b8337a9 (diff) | |
download | upstream-7b39c7666012a62e7d3a381dc71e5101898dc19a.tar.gz upstream-7b39c7666012a62e7d3a381dc71e5101898dc19a.tar.bz2 upstream-7b39c7666012a62e7d3a381dc71e5101898dc19a.zip |
atheros: various braces fixes
Fix braces location, remove unnecessary empty lines before or after code
block, remove useless braces. All cases are detected by checkpatch.
Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41087 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.patch | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/target/linux/atheros/patches-3.10/130-watchdog.patch b/target/linux/atheros/patches-3.10/130-watchdog.patch index 506b5f9561..97b79b9a1d 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,200 @@ +@@ -0,0 +1,197 @@ +/* + * 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 @@ -82,8 +82,7 @@ +static irqreturn_t +ar2315_wdt_interrupt(int irq, void *dev_id) +{ -+ if(started) -+ { ++ if (started) { + printk(KERN_CRIT "watchdog expired, rebooting system\n"); + emergency_restart(); + } else { @@ -105,8 +104,7 @@ + int new_wdt_timeout; + int ret = -ENOIOCTLCMD; + -+ switch(cmd) -+ { ++ switch (cmd) { + case WDIOC_GETSUPPORT: + ret = copy_to_user((struct watchdog_info __user *)arg, &ident, sizeof(ident)) ? -EFAULT : 0; + break; @@ -153,8 +151,7 @@ + + ar2315_wdt_enable(); + ret = request_irq(AR531X_MISC_IRQ_WATCHDOG, ar2315_wdt_interrupt, IRQF_DISABLED, "ar2315_wdt", NULL); -+ if(ret) -+ { ++ if (ret) { + printk(KERN_ERR "ar2315wdt: failed to register inetrrupt\n"); + goto out; + } |