summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJian J Wang <jian.j.wang@intel.com>2018-10-27 10:12:13 +0800
committerJian J Wang <jian.j.wang@intel.com>2018-10-27 21:33:13 +0800
commit895415ed47c5796b8e0ddd905f20817f9f4bf114 (patch)
tree1bae4d478070d047dd776a942dd35ef3f9a0aca3
parent23a62c699054a89e0a22e372c7d5e8384e614e31 (diff)
downloadedk2-895415ed47c5796b8e0ddd905f20817f9f4bf114.tar.gz
edk2-895415ed47c5796b8e0ddd905f20817f9f4bf114.tar.xz
edk2-895415ed47c5796b8e0ddd905f20817f9f4bf114.zip
MdeModulePkg/Core: correct one coding style
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=1284 Non-Boolean comparisons should use a compare operator (==, !=, >, < >=, <=) Cc: Dandan Bi <dandan.bi@intel.com> Cc: Star Zeng <star.zeng@intel.com> Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Jian J Wang <jian.j.wang@intel.com> Reviewed-by: Dandan Bi <dandan.bi@intel.com>
-rw-r--r--MdeModulePkg/Core/Dxe/Mem/HeapGuard.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/MdeModulePkg/Core/Dxe/Mem/HeapGuard.c b/MdeModulePkg/Core/Dxe/Mem/HeapGuard.c
index 521e0d7b2a..9f89df8d8f 100644
--- a/MdeModulePkg/Core/Dxe/Mem/HeapGuard.c
+++ b/MdeModulePkg/Core/Dxe/Mem/HeapGuard.c
@@ -1559,7 +1559,7 @@ PromoteGuardedFreePages (
}
}
- if (AvailablePages) {
+ if (AvailablePages != 0) {
DEBUG ((DEBUG_INFO, "Promoted pages: %lX (%lx)\r\n", Start, (UINT64)AvailablePages));
ClearGuardedMemoryBits (Start, AvailablePages);