Skip to content

Commit

Permalink
x86/mce: address violations of MISRA C Rule 16.3
Browse files Browse the repository at this point in the history
Add missing break statements to address violations of
MISRA C Rule 16.3: "An unconditional `break' statement shall terminate
every switch-clause".

No functional change.

Signed-off-by: Federico Serafini <[email protected]>
Reviewed-by: Stefano Stabellini <[email protected]>
Acked-by: Jan Beulich <[email protected]>
  • Loading branch information
FedericoSerafini authored and jbeulich committed Jul 30, 2024
1 parent 2c9044a commit 20716a4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions xen/arch/x86/cpu/mcheck/mce_amd.c
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,7 @@ static void mcequirk_amd_apply(enum mcequirk_amd_flags flags)

default:
ASSERT(flags == MCEQUIRK_NONE);
break;
}
}

Expand Down
2 changes: 2 additions & 0 deletions xen/arch/x86/cpu/mcheck/mce_intel.c
Original file line number Diff line number Diff line change
Expand Up @@ -896,6 +896,8 @@ static void intel_init_ppin(const struct cpuinfo_x86 *c)
ppin_msr = 0;
else if ( c == &boot_cpu_data )
ppin_msr = MSR_PPIN;

break;
}
}

Expand Down

0 comments on commit 20716a4

Please sign in to comment.