x86/mce/severity: Fix warning about indented braces
[deliverable/linux.git] / arch / x86 / kernel / cpu / mcheck / mce-severity.c
index 155c9261d3efa39d6d1f677e09522e0b5bb2d332..9c682c222071db1960ba848c24c76567306d0542 100644 (file)
@@ -208,12 +208,11 @@ static int mce_severity_amd(struct mce *m, int tolerant, char **msg, bool is_exc
                 */
                if (mce_flags.overflow_recov) {
                        /* software can try to contain */
-                       if (!(m->mcgstatus & MCG_STATUS_RIPV))
-                               if (ctx == IN_KERNEL)
-                                       return MCE_PANIC_SEVERITY;
+                       if (!(m->mcgstatus & MCG_STATUS_RIPV) && (ctx == IN_KERNEL))
+                               return MCE_PANIC_SEVERITY;
 
-                               /* kill current process */
-                               return MCE_AR_SEVERITY;
+                       /* kill current process */
+                       return MCE_AR_SEVERITY;
                } else {
                        /* at least one error was not logged */
                        if (m->status & MCI_STATUS_OVER)
This page took 0.043524 seconds and 5 git commands to generate.