mirror of https://github.com/acidanthera/audk.git
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>
This commit is contained in:
parent
15dbb39332
commit
2bdc0de6a5
|
@ -213,10 +213,6 @@ CpuidVersionInfo (
|
||||||
UINTN DisplayFamily;
|
UINTN DisplayFamily;
|
||||||
UINTN DisplayModel;
|
UINTN DisplayModel;
|
||||||
|
|
||||||
if (CPUID_VERSION_INFO > gMaximumBasicFunction) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
AsmCpuid (CPUID_VERSION_INFO, &Eax.Uint32, &Ebx.Uint32, &Ecx.Uint32, &Edx.Uint32);
|
AsmCpuid (CPUID_VERSION_INFO, &Eax.Uint32, &Ebx.Uint32, &Ecx.Uint32, &Edx.Uint32);
|
||||||
|
|
||||||
Print (L"CPUID_VERSION_INFO (Leaf %08x)\n", CPUID_VERSION_INFO);
|
Print (L"CPUID_VERSION_INFO (Leaf %08x)\n", CPUID_VERSION_INFO);
|
||||||
|
|
Loading…
Reference in New Issue