@@ -227,14 +227,14 @@ static void cpuid_fix_nx_cap(struct kvm_vcpu *vcpu)
int cpuid_query_maxphyaddr(struct kvm_vcpu *vcpu)
{
- struct kvm_cpuid_entry2 *best;
+ struct kvm_cpuid_entry2 *e;
- best = kvm_find_cpuid_entry(vcpu, 0x80000000, 0);
- if (!best || best->eax < 0x80000008)
+ e = kvm_find_cpuid_entry(vcpu, 0x80000000, 0);
+ if (!e || e->eax < 0x80000008)
goto not_found;
- best = kvm_find_cpuid_entry(vcpu, 0x80000008, 0);
- if (best)
- return best->eax & 0xff;
+ e = kvm_find_cpuid_entry(vcpu, 0x80000008, 0);
+ if (e)
+ return e->eax & 0xff;
not_found:
return 36;
}
Function's logic doesn't change at all. Signed-off-by: Robert Hoo <robert.hu@linux.intel.com> --- arch/x86/kvm/cpuid.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-)