diff options
author | Jeff Fan <jeff.fan@intel.com> | 2014-11-19 05:15:06 +0000 |
---|---|---|
committer | vanjeff <vanjeff@Edk2> | 2014-11-19 05:15:06 +0000 |
commit | 3a5d9a3682ec17479a6e8cc184370471f8136a3c (patch) | |
tree | 4dfe7881a311c165c1d3bc764dabc5ba78aa4219 | |
parent | fdb5bc72b64e1a19894a55151b4d82c54f857958 (diff) | |
download | edk2-3a5d9a3682ec17479a6e8cc184370471f8136a3c.tar.gz edk2-3a5d9a3682ec17479a6e8cc184370471f8136a3c.tar.bz2 edk2-3a5d9a3682ec17479a6e8cc184370471f8136a3c.zip |
UefiCpuPkg : Fix CpuDxe build issue with VS2005 tool chain
!!() cannot pass VS2005 build.
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jeff Fan <jeff.fan@intel.com>
Reviewed-by: Chen Fan <chen.fan.fnst@cn.fujitsu.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16404 6f19259b-4bc3-4df7-8a09-765794883524
-rw-r--r-- | UefiCpuPkg/CpuDxe/CpuMp.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/UefiCpuPkg/CpuDxe/CpuMp.c b/UefiCpuPkg/CpuDxe/CpuMp.c index b65300c773..8290dd29f1 100644 --- a/UefiCpuPkg/CpuDxe/CpuMp.c +++ b/UefiCpuPkg/CpuDxe/CpuMp.c @@ -178,7 +178,7 @@ TestCpuStatusFlag ( Ret = CpuData->Info.StatusFlag & Flags;
ReleaseMpSpinLock (CpuData);
- return !!(Ret);
+ return (Ret != 0);
}
/**
@@ -664,7 +664,7 @@ StartupAllAPs ( mMpSystemData.ProcedureArgument = ProcedureArgument;
mMpSystemData.WaitEvent = WaitEvent;
mMpSystemData.Timeout = TimeoutInMicroseconds;
- mMpSystemData.TimeoutActive = !!(TimeoutInMicroseconds);
+ mMpSystemData.TimeoutActive = (TimeoutInMicroseconds != 0);
mMpSystemData.FinishCount = 0;
mMpSystemData.StartCount = 0;
mMpSystemData.SingleThread = SingleThread;
@@ -887,7 +887,7 @@ StartupThisAP ( CpuData->Timeout = TimeoutInMicroseconds;
CpuData->WaitEvent = WaitEvent;
- CpuData->TimeoutActive = !!(TimeoutInMicroseconds);
+ CpuData->TimeoutActive = (TimeoutInMicroseconds != 0);
CpuData->Finished = Finished;
mStopCheckAllAPsStatus = FALSE;
|