From: Jeff Fan Date: Wed, 2 Mar 2016 02:00:31 +0000 (+0800) Subject: UefiCpuPkg/Application/Cpuid: Remove unnecessary code check X-Git-Tag: edk2-stable201903~7738 X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=commitdiff_plain;h=2bdc0de6a525d48f4a74fb01351d53085ecaa281 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 Cc: Michael Kinney Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jeff Fan Reviewed-by: Qiu Shumin Reviewed-by: Michael Kinney --- 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);