From 2bdc0de6a525d48f4a74fb01351d53085ecaa281 Mon Sep 17 00:00:00 2001 From: Jeff Fan Date: Wed, 2 Mar 2016 10:00:31 +0800 Subject: [PATCH] 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 --- UefiCpuPkg/Application/Cpuid/Cpuid.c | 4 ---- 1 file changed, 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); -- 2.39.2