VMX: fix vmx_{find,del}_msr() build
authorJan Beulich <jbeulich@suse.com>
Thu, 19 Jul 2018 09:54:45 +0000 (11:54 +0200)
committerJan Beulich <jbeulich@suse.com>
Thu, 19 Jul 2018 09:54:45 +0000 (11:54 +0200)
commit97cb0516a322ecdf0032fa9d8aa1525c03d7772f
treec24cd7e0a42b7ac9cceed56515ceee6897fea19b
parent2b50cdbc444c637575580dcfa6c9525a84d5cc62
VMX: fix vmx_{find,del}_msr() build

Older gcc at -O2 (and perhaps higher) does not recognize that apparently
uninitialized variables aren't really uninitialized. Pull out the
assignments used by two of the three case blocks and make them
initializers of the variables, as I think I had suggested during review.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Wei Liu <wei.liu2@citrix.com>
Acked-by: Kevin Tian <kevin.tian@intel.com>
xen/arch/x86/hvm/vmx/vmcs.c