mirror of https://github.com/acidanthera/audk.git
UefiCpuPkg/Cpuid: Remove wrong while-loop check after for-loop
while-loop check should not co-exist with for-loop. This should be typo when we check-in the original code. We should keep one loop only. This issue caused CLANG38 build failure reported by https://tianocore.acgmultimedia.com/show_bug.cgi?id=148 Contributed-under: TianoCore Contribution Agreement 1.0 Cc: Liming Gao <liming.gao@intel.com> Cc: Michael Kinney <michael.d.kinney@intel.com> Cc: Feng Tian <feng.tian@intel.com> Signed-off-by: Jeff Fan <jeff.fan@intel.com> Reviewed-by: Liming Gao <liming.gao@intel.com>
This commit is contained in:
parent
245cda6641
commit
d93a10c02b
|
@ -617,8 +617,7 @@ CpuidStructuredExtendedFeatureFlags (
|
|||
PRINT_BIT_FIELD (Ecx, PKU);
|
||||
PRINT_BIT_FIELD (Ecx, OSPKE);
|
||||
}
|
||||
SubLeaf++;
|
||||
} while (SubLeaf <= Eax);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -1275,8 +1275,7 @@ typedef union {
|
|||
SubLeaf,
|
||||
NULL, &Ebx.Uint32, &Ecx.Uint32, NULL
|
||||
);
|
||||
SubLeaf++;
|
||||
} while (SubLeaf <= Eax);
|
||||
}
|
||||
@endcode
|
||||
**/
|
||||
#define CPUID_STRUCTURED_EXTENDED_FEATURE_FLAGS 0x07
|
||||
|
|
Loading…
Reference in New Issue