diff options
author | qhuang8 <qhuang8@6f19259b-4bc3-4df7-8a09-765794883524> | 2008-05-09 07:52:58 +0000 |
---|---|---|
committer | qhuang8 <qhuang8@6f19259b-4bc3-4df7-8a09-765794883524> | 2008-05-09 07:52:58 +0000 |
commit | 71f68914fa2e7c0b661fcf11a09362b7f9564eb9 (patch) | |
tree | 301001c101eba9282db6eb94d337b1803f0a6ecb /MdeModulePkg/Core/Dxe/Mem/Page.c | |
parent | 162ed594438ab8d39f89b43e6d645ca24e1e1e65 (diff) | |
download | edk2-71f68914fa2e7c0b661fcf11a09362b7f9564eb9.zip edk2-71f68914fa2e7c0b661fcf11a09362b7f9564eb9.tar.gz edk2-71f68914fa2e7c0b661fcf11a09362b7f9564eb9.tar.bz2 |
Fix the prediction warnings in DxeMain.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5190 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdeModulePkg/Core/Dxe/Mem/Page.c')
-rw-r--r-- | MdeModulePkg/Core/Dxe/Mem/Page.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/MdeModulePkg/Core/Dxe/Mem/Page.c b/MdeModulePkg/Core/Dxe/Mem/Page.c index 9ec8314..190715e 100644 --- a/MdeModulePkg/Core/Dxe/Mem/Page.c +++ b/MdeModulePkg/Core/Dxe/Mem/Page.c @@ -557,7 +557,7 @@ CoreFreeMemoryMapStack ( //
// If already freeing the map stack, then return
//
- if (mFreeMapStack) {
+ if (mFreeMapStack != 0) {
return ;
}
@@ -566,7 +566,7 @@ CoreFreeMemoryMapStack ( //
mFreeMapStack += 1;
- while (mMapDepth) {
+ while (mMapDepth != 0) {
//
// Deque an memory map entry from mFreeMemoryMapEntryList
//
@@ -730,7 +730,7 @@ CoreConvertPages ( ASSERT (End > Start) ;
ASSERT_LOCKED (&gMemoryLock);
- if (NumberOfPages == 0 || (Start & EFI_PAGE_MASK ) || (Start > (Start + NumberOfBytes))) {
+ if (NumberOfPages == 0 || ((Start & EFI_PAGE_MASK) != 0) || (Start > (Start + NumberOfBytes))) {
return EFI_INVALID_PARAMETER;
}
@@ -1042,9 +1042,9 @@ FindFreePages ( }
Start = CoreFindFreePagesI (NewMaxAddress, NoPages, NewType, Alignment);
- if (!Start) {
+ if (Start == 0) {
Start = CoreFindFreePagesI (MaxAddress, NoPages, NewType, Alignment);
- if (!Start) {
+ if (Start == 0) {
//
// Here means there may be no enough memory to use, so try to go through
// all the memory descript to promote the untested memory directly
|