mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 19:51:31 -04:00
[WATCHDOG] Add necessary braces to if (...) \n #if... cases
Signed-off-by: Ilpo Jarvinen <[email protected]> Signed-off-by: Wim Van Sebroeck <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
This commit is contained in:
parent
bb0a38d891
commit
59338d4cb6
2 changed files with 4 additions and 2 deletions
|
|
@ -253,7 +253,7 @@ static irqreturn_t wdt_interrupt(int irq, void *dev_id)
|
|||
printk(KERN_CRIT "Possible fan fault.\n");
|
||||
}
|
||||
#endif /* CONFIG_WDT_501 */
|
||||
if (!(status & WDC_SR_WCCR))
|
||||
if (!(status & WDC_SR_WCCR)) {
|
||||
#ifdef SOFTWARE_REBOOT
|
||||
#ifdef ONLY_TESTING
|
||||
printk(KERN_CRIT "Would Reboot.\n");
|
||||
|
|
@ -264,6 +264,7 @@ static irqreturn_t wdt_interrupt(int irq, void *dev_id)
|
|||
#else
|
||||
printk(KERN_CRIT "Reset in 5ms.\n");
|
||||
#endif
|
||||
}
|
||||
return IRQ_HANDLED;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -298,7 +298,7 @@ static irqreturn_t wdtpci_interrupt(int irq, void *dev_id)
|
|||
printk(KERN_CRIT PFX "Possible fan fault.\n");
|
||||
}
|
||||
#endif /* CONFIG_WDT_501_PCI */
|
||||
if (!(status&WDC_SR_WCCR))
|
||||
if (!(status&WDC_SR_WCCR)) {
|
||||
#ifdef SOFTWARE_REBOOT
|
||||
#ifdef ONLY_TESTING
|
||||
printk(KERN_CRIT PFX "Would Reboot.\n");
|
||||
|
|
@ -309,6 +309,7 @@ static irqreturn_t wdtpci_interrupt(int irq, void *dev_id)
|
|||
#else
|
||||
printk(KERN_CRIT PFX "Reset in 5ms.\n");
|
||||
#endif
|
||||
}
|
||||
return IRQ_HANDLED;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue