summaryrefslogtreecommitdiffstats
path: root/UefiCpuPkg/Application
diff options
context:
space:
mode:
authorJeff Fan <jeff.fan@intel.com>2016-10-14 14:40:58 +0800
committerJeff Fan <jeff.fan@intel.com>2016-10-18 09:15:44 +0800
commitd93a10c02bd963cc11670a9e02ce396764838768 (patch)
treeaaca645ea5befbf9e48aae15a5bf70df177f3278 /UefiCpuPkg/Application
parent245cda6641ade1f1013c2d5c9c838f2706636828 (diff)
downloadedk2-d93a10c02bd963cc11670a9e02ce396764838768.tar.gz
edk2-d93a10c02bd963cc11670a9e02ce396764838768.tar.bz2
edk2-d93a10c02bd963cc11670a9e02ce396764838768.zip
UefiCpuPkg/Cpuid: Remove wrong while-loop check after for-loop
while-loop check should not co-exist with for-loop. This should be typo when we check-in the original code. We should keep one loop only. This issue caused CLANG38 build failure reported by https://tianocore.acgmultimedia.com/show_bug.cgi?id=148 Contributed-under: TianoCore Contribution Agreement 1.0 Cc: Liming Gao <liming.gao@intel.com> Cc: Michael Kinney <michael.d.kinney@intel.com> Cc: Feng Tian <feng.tian@intel.com> Signed-off-by: Jeff Fan <jeff.fan@intel.com> Reviewed-by: Liming Gao <liming.gao@intel.com>
Diffstat (limited to 'UefiCpuPkg/Application')
-rw-r--r--UefiCpuPkg/Application/Cpuid/Cpuid.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/UefiCpuPkg/Application/Cpuid/Cpuid.c b/UefiCpuPkg/Application/Cpuid/Cpuid.c
index 8726a85f4e..ac14c41ed6 100644
--- a/UefiCpuPkg/Application/Cpuid/Cpuid.c
+++ b/UefiCpuPkg/Application/Cpuid/Cpuid.c
@@ -617,8 +617,7 @@ CpuidStructuredExtendedFeatureFlags (
PRINT_BIT_FIELD (Ecx, PKU);
PRINT_BIT_FIELD (Ecx, OSPKE);
}
- SubLeaf++;
- } while (SubLeaf <= Eax);
+ }
}
/**