]> xenbits.xensource.com Git - xen.git/commit
x86/hvm: address violations of MISRA C Rule 16.2
authorNicola Vetrini <nicola.vetrini@bugseng.com>
Fri, 5 Apr 2024 09:14:34 +0000 (11:14 +0200)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Thu, 11 Apr 2024 12:23:08 +0000 (13:23 +0100)
commitbbbbd024e8e5d5a286af51de883a33989a2031dc
tree5cd4a820aa98cfceae4910d9989c939e536fb954
parenteeab8c4619c26e4ba4055430a46d6180cc73b2be
x86/hvm: address violations of MISRA C Rule 16.2

Refactor the switch so that a violation of
MISRA C Rule 16.2 is resolved (a switch label should be immediately
enclosed in the compound statement of the switch).

The switch clause ending with the pseudo
keyword "fallthrough" is an allowed exception to Rule 16.3.

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