diff options
author | Sheng Yang <sheng@linux.intel.com> | 2009-12-18 09:48:42 +0100 |
---|---|---|
committer | Marcelo Tosatti <mtosatti@redhat.com> | 2010-03-01 16:35:40 +0100 |
commit | 8a7e3f01e692cd202fb7c042cf2be9ff8c599a1e (patch) | |
tree | 2329c2dabbec92a48cba08cb95dbb8dd72fc1046 | |
parent | KVM: VMX: Fold ept_update_paging_mode_cr4() into its caller (diff) | |
download | linux-8a7e3f01e692cd202fb7c042cf2be9ff8c599a1e.tar.xz linux-8a7e3f01e692cd202fb7c042cf2be9ff8c599a1e.zip |
KVM: VMX: Remove redundant variable
It's no longer necessary.
Signed-off-by: Sheng Yang <sheng@linux.intel.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
-rw-r--r-- | arch/x86/kvm/vmx.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/arch/x86/kvm/vmx.c b/arch/x86/kvm/vmx.c index 694baed9bc8f..f8f2fdc26894 100644 --- a/arch/x86/kvm/vmx.c +++ b/arch/x86/kvm/vmx.c @@ -2399,14 +2399,12 @@ static int vmx_vcpu_setup(struct vcpu_vmx *vmx) for (i = 0; i < NR_VMX_MSR; ++i) { u32 index = vmx_msr_index[i]; u32 data_low, data_high; - u64 data; int j = vmx->nmsrs; if (rdmsr_safe(index, &data_low, &data_high) < 0) continue; if (wrmsr_safe(index, data_low, data_high) < 0) continue; - data = data_low | ((u64)data_high << 32); vmx->guest_msrs[j].index = i; vmx->guest_msrs[j].data = 0; vmx->guest_msrs[j].mask = -1ull; |