UefiCpuPkg/CpuDxe: NumberOfData is not BOOLEAN type

Should check NumberOfData value instead of treat its value as one BOOLEAN type.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jeff Fan <jeff.fan@intel.com>
Reviewed-by: Shuming Qiu <shuming.qiu@intel.com>

git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17672 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
Jeff Fan 2015-06-19 08:27:35 +00:00 committed by vanjeff
parent 952bd22918
commit 13181dde42
1 changed files with 1 additions and 1 deletions

View File

@ -1580,7 +1580,7 @@ CollectBistDataFromHob (
}
}
while (NumberOfData--) {
while ((NumberOfData--) > 0) {
for (ProcessorNumber = 0; ProcessorNumber < mMpSystemData.NumberOfProcessors; ProcessorNumber++) {
CpuData = &mMpSystemData.CpuDatas[ProcessorNumber];
InitialLocalApicId = (UINT32) CpuData->Info.ProcessorId;