]> xenbits.xensource.com Git - xen.git/commit
x86/efi: tidy switch statement and address MISRA violation
authorNicola Vetrini <nicola.vetrini@bugseng.com>
Fri, 5 Apr 2024 09:14:32 +0000 (11:14 +0200)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Thu, 11 Apr 2024 12:23:08 +0000 (13:23 +0100)
commitf509d39d5bb35d2ce200ebe75ad8cbb5f35a7ae2
tree1fd8a622f0c632755534cfbe254dd3f9ccc0a113
parent24f204748ef978eba6ae4f83bb5b7daacab5acb1
x86/efi: tidy switch statement and address MISRA violation

Refactor the first clauses so that a violation of
MISRA C Rule 16.2 is resolved (a switch label, "default" in this
case, should be immediately enclosed in the compound statement
of the switch). Note that the switch clause ending with the pseudo
keyword "fallthrough" is an allowed exception to Rule 16.3.

Convert fallthrough comments in other clauses to the pseudo-keyword
while at it.

No functional change.

Signed-off-by: Nicola Vetrini <nicola.vetrini@bugseng.com>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/arch/x86/efi/efi-boot.h