summaryrefslogtreecommitdiffstats
path: root/UefiCpuPkg/CpuDxe/CpuMp.c
diff options
context:
space:
mode:
authorJeff Fan <jeff.fan@intel.com>2015-06-19 08:27:35 +0000
committervanjeff <vanjeff@Edk2>2015-06-19 08:27:35 +0000
commit13181dde423b74060eb2b7b1e8cbb4e8b2dc6775 (patch)
tree2df933ab380fbb6eff07ef764a7b5755465bfb57 /UefiCpuPkg/CpuDxe/CpuMp.c
parent952bd2291872b5e2d302f8de1349239bfbd0332c (diff)
downloadedk2-13181dde423b74060eb2b7b1e8cbb4e8b2dc6775.tar.gz
edk2-13181dde423b74060eb2b7b1e8cbb4e8b2dc6775.tar.bz2
edk2-13181dde423b74060eb2b7b1e8cbb4e8b2dc6775.zip
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
Diffstat (limited to 'UefiCpuPkg/CpuDxe/CpuMp.c')
-rw-r--r--UefiCpuPkg/CpuDxe/CpuMp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/UefiCpuPkg/CpuDxe/CpuMp.c b/UefiCpuPkg/CpuDxe/CpuMp.c
index 07abe4bf8b..4ddcca208a 100644
--- a/UefiCpuPkg/CpuDxe/CpuMp.c
+++ b/UefiCpuPkg/CpuDxe/CpuMp.c
@@ -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;