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>
This commit is contained in:
Jian J Wang 2018-10-27 10:12:13 +08:00
parent 23a62c6990
commit 895415ed47
1 changed files with 1 additions and 1 deletions

View File

@ -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);