x86/hvm: Rearange check_segment() to use a switch statement
authorAndrew Cooper <andrew.cooper3@citrix.com>
Mon, 5 Jun 2017 16:19:27 +0000 (17:19 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Tue, 25 Jul 2017 18:56:35 +0000 (19:56 +0100)
commit43dceb97eb3e45957c5a2e8a1ec874b9eb1ee941
tree0d489d4675f479c83cb8f2e0b433d61922e838cf
parentf93b6575d10fd4da91def2acf80cd5c1d7082e84
x86/hvm: Rearange check_segment() to use a switch statement

This simplifies the logic by separating the x86_segment check from the type
check.  No functional change.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
xen/arch/x86/hvm/domain.c