watchdog: softdog: improve coding style

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>
This commit is contained in:
Wolfram Sang 2016-05-25 08:37:49 +02:00 committed by Wim Van Sebroeck
parent 61a21274c9
commit 4a23e2bf03
1 changed files with 3 additions and 3 deletions

View File

@ -57,9 +57,9 @@ MODULE_PARM_DESC(soft_panic,
static void softdog_fire(unsigned long data) static void softdog_fire(unsigned long data)
{ {
module_put(THIS_MODULE); module_put(THIS_MODULE);
if (soft_noboot) if (soft_noboot) {
pr_crit("Triggered - Reboot ignored\n"); pr_crit("Triggered - Reboot ignored\n");
else if (soft_panic) { } else if (soft_panic) {
pr_crit("Initiating panic\n"); pr_crit("Initiating panic\n");
panic("Software Watchdog Timer expired"); panic("Software Watchdog Timer expired");
} else { } else {