Revision: 17672
          http://sourceforge.net/p/edk2/code/17672
Author:   vanjeff
Date:     2015-06-19 08:27:35 +0000 (Fri, 19 Jun 2015)
Log Message:
-----------
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 <[email protected]>
Reviewed-by: Shuming Qiu <[email protected]>

Modified Paths:
--------------
    trunk/edk2/UefiCpuPkg/CpuDxe/CpuMp.c

Modified: trunk/edk2/UefiCpuPkg/CpuDxe/CpuMp.c
===================================================================
--- trunk/edk2/UefiCpuPkg/CpuDxe/CpuMp.c        2015-06-19 02:46:51 UTC (rev 
17671)
+++ trunk/edk2/UefiCpuPkg/CpuDxe/CpuMp.c        2015-06-19 08:27:35 UTC (rev 
17672)
@@ -1580,7 +1580,7 @@
     }
   }
 
-  while (NumberOfData--) {
+  while ((NumberOfData--) > 0) {
     for (ProcessorNumber = 0; ProcessorNumber < 
mMpSystemData.NumberOfProcessors; ProcessorNumber++) {
       CpuData = &mMpSystemData.CpuDatas[ProcessorNumber];
       InitialLocalApicId = (UINT32) CpuData->Info.ProcessorId;


------------------------------------------------------------------------------
_______________________________________________
edk2-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-commits

Reply via email to