watchdog: softdog: improve coding style
authorWolfram Sang <wsa+renesas@sang-engineering.com>
Wed, 25 May 2016 06:37:49 +0000 (08:37 +0200)
committerWim Van Sebroeck <wim@iguana.be>
Sun, 17 Jul 2016 18:54:52 +0000 (20:54 +0200)
Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
drivers/watchdog/softdog.c

index 5e3a30b..b067edf 100644 (file)
@@ -57,9 +57,9 @@ MODULE_PARM_DESC(soft_panic,
 static void softdog_fire(unsigned long data)
 {
        module_put(THIS_MODULE);
-       if (soft_noboot)
+       if (soft_noboot) {
                pr_crit("Triggered - Reboot ignored\n");
-       else if (soft_panic) {
+       else if (soft_panic) {
                pr_crit("Initiating panic\n");
                panic("Software Watchdog Timer expired");
        } else {
@@ -74,7 +74,7 @@ static struct timer_list softdog_ticktock =
 
 static int softdog_ping(struct watchdog_device *w)
 {
-       if (!mod_timer(&softdog_ticktock, jiffies+(w->timeout*HZ)))
+       if (!mod_timer(&softdog_ticktock, jiffies + (w->timeout * HZ)))
                __module_get(THIS_MODULE);
        return 0;
 }