Skip to content

Commit

Permalink
UefiCpuPkg/Application/Cpuid: Remove unnecessary code check
Browse files Browse the repository at this point in the history
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>
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>
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>
  • Loading branch information
vanjeff committed Mar 10, 2016
1 parent 321ef72 commit 7084981
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions UefiCpuPkg/Application/Cpuid/Cpuid.c
Original file line number Diff line number Diff line change
Expand Up @@ -179,10 +179,6 @@ CpuidSignature (
UINT32 Edx;
CHAR8 Signature[13];

if (CPUID_SIGNATURE > gMaximumBasicFunction) {
return;
}

AsmCpuid (CPUID_SIGNATURE, &Eax, &Ebx, &Ecx, &Edx);

Print (L"CPUID_SIGNATURE (Leaf %08x)\n", CPUID_SIGNATURE);
Expand Down

0 comments on commit 7084981

Please sign in to comment.