summaryrefslogtreecommitdiff
path: root/MdeModulePkg/Universal/Acpi
diff options
context:
space:
mode:
authorStar Zeng <star.zeng@intel.com>2015-06-19 12:11:01 +0000
committerlzeng14 <lzeng14@Edk2>2015-06-19 12:11:01 +0000
commitde4db4da318115e9e239c2e3a255889cc8fc5c1b (patch)
tree12ca883a3c53361ecbdcb8a8b3867d6fe48ea282 /MdeModulePkg/Universal/Acpi
parent13181dde423b74060eb2b7b1e8cbb4e8b2dc6775 (diff)
downloadedk2-platforms-de4db4da318115e9e239c2e3a255889cc8fc5c1b.tar.xz
MdeModulePkg AcpiTableDxe: Non-Boolean comparisons should use a compare operator.
Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Star Zeng <star.zeng@intel.com> Reviewed-by: Shumin Qiu <shumin.qiu@intel.com> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17675 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdeModulePkg/Universal/Acpi')
-rw-r--r--MdeModulePkg/Universal/Acpi/AcpiTableDxe/AcpiTableProtocol.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/MdeModulePkg/Universal/Acpi/AcpiTableDxe/AcpiTableProtocol.c b/MdeModulePkg/Universal/Acpi/AcpiTableDxe/AcpiTableProtocol.c
index d016f341ca..1569de0e42 100644
--- a/MdeModulePkg/Universal/Acpi/AcpiTableDxe/AcpiTableProtocol.c
+++ b/MdeModulePkg/Universal/Acpi/AcpiTableDxe/AcpiTableProtocol.c
@@ -169,7 +169,7 @@ PublishTables (
AcpiTableInstance->TablesInstalled1 = TRUE;
}
- if ((Version & ACPI_TABLE_VERSION_GTE_2_0) &&
+ if (((Version & ACPI_TABLE_VERSION_GTE_2_0) != 0) &&
!AcpiTableInstance->TablesInstalled3) {
Status = gBS->InstallConfigurationTable (&gEfiAcpiTableGuid, AcpiTableInstance->Rsdp3);
if (EFI_ERROR (Status)) {