]> xenbits.xensource.com Git - people/andrewcoop/xen.git/commit
x86/cpuid: address violation of MISRA C Rule 16.2
authorNicola Vetrini <nicola.vetrini@bugseng.com>
Fri, 5 Apr 2024 09:14:30 +0000 (11:14 +0200)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Thu, 11 Apr 2024 12:23:08 +0000 (13:23 +0100)
commit3b51a812e03a36a44b154b261458c9ff88b98c60
tree04f9faa3ea384e8017ca686ae62dfe56769eb1bc
parent6af626c1da682655a6734a0d47899cb9b03d71ae
x86/cpuid: address violation of MISRA C Rule 16.2

Refactor the switch so that a violation of MISRA C Rule 16.2 is resolved
(A switch label shall only be used when the most closely-enclosing
compound statement is the body of a switch statement).
Note that the switch clause ending with the pseudo
keyword "fallthrough" is an allowed exception to Rule 16.3.

No functional change.

Signed-off-by: Nicola Vetrini <nicola.vetrini@bugseng.com>
Acked-by: Jan Beulich <jbeulich@suse.com>
xen/arch/x86/cpuid.c