Use __do_cpuid_func()'s common loop iterator, "i", when enumerating the
sub-leafs for CPUID 0xD now that the CPUID 0xD loop doesn't need to
manual maintain separate counts for the entries index and CPUID index.
No functional changed intended.
Reviewed-by: Vitaly Kuznetsov <vkuznets@redhat.com>
Signed-off-by: Sean Christopherson <sean.j.christopherson@intel.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
                }
                break;
        case 0xd: {
-               int idx;
                u64 supported = kvm_supported_xcr0();
 
                entry->eax &= supported;
                entry->ecx = 0;
                entry->edx = 0;
 
-               for (idx = 2; idx < 64; ++idx) {
-                       if (!(supported & BIT_ULL(idx)))
+               for (i = 2; i < 64; ++i) {
+                       if (!(supported & BIT_ULL(i)))
                                continue;
 
-                       entry = do_host_cpuid(array, function, idx);
+                       entry = do_host_cpuid(array, function, i);
                        if (!entry)
                                goto out;