UefiCpuPkg/Cpuid: Remove wrong while-loop check after for-loop
[mirror_edk2.git] / UefiCpuPkg / Application / Cpuid / Cpuid.c
index 8726a85..ac14c41 100644 (file)
@@ -617,8 +617,7 @@ CpuidStructuredExtendedFeatureFlags (
       PRINT_BIT_FIELD (Ecx, PKU);\r
       PRINT_BIT_FIELD (Ecx, OSPKE);\r
     }\r
-    SubLeaf++;\r
-  } while (SubLeaf <= Eax);\r
+  }\r
 }\r
 \r
 /**\r