summaryrefslogtreecommitdiff
path: root/UefiCpuPkg
diff options
context:
space:
mode:
authorJeff Fan <jeff.fan@intel.com>2016-03-02 10:00:31 +0800
committerJeff Fan <jeff.fan@intel.com>2016-03-03 09:10:56 +0800
commit2bdc0de6a525d48f4a74fb01351d53085ecaa281 (patch)
tree501447af20ce7f6bd08d1582a743ec1bd3cdccd7 /UefiCpuPkg
parent15dbb3933282c0f55ceb5ab501e26cb17cff5560 (diff)
downloadedk2-platforms-2bdc0de6a525d48f4a74fb01351d53085ecaa281.tar.xz
UefiCpuPkg/Application/Cpuid: Remove unnecessary code check
gMaximumBasicFunction is set to CPUID_SIGNATURE as below, so removed the compare code. UINT32 gMaximumBasicFunction = CPUID_SIGNATURE; Cc: Qiu Shumin <shumin.qiu@intel.com> Cc: Michael Kinney <michael.d.kinney@intel.com> Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jeff Fan <jeff.fan@intel.com> Reviewed-by: Qiu Shumin <shumin.qiu@intel.com> Reviewed-by: Michael Kinney <michael.d.kinney@intel.com>
Diffstat (limited to 'UefiCpuPkg')
-rw-r--r--UefiCpuPkg/Application/Cpuid/Cpuid.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/UefiCpuPkg/Application/Cpuid/Cpuid.c b/UefiCpuPkg/Application/Cpuid/Cpuid.c
index 366c3ca205..b05da3ee0c 100644
--- a/UefiCpuPkg/Application/Cpuid/Cpuid.c
+++ b/UefiCpuPkg/Application/Cpuid/Cpuid.c
@@ -213,10 +213,6 @@ CpuidVersionInfo (
UINTN DisplayFamily;
UINTN DisplayModel;
- if (CPUID_VERSION_INFO > gMaximumBasicFunction) {
- return;
- }
-
AsmCpuid (CPUID_VERSION_INFO, &Eax.Uint32, &Ebx.Uint32, &Ecx.Uint32, &Edx.Uint32);
Print (L"CPUID_VERSION_INFO (Leaf %08x)\n", CPUID_VERSION_INFO);