]> git.proxmox.com Git - mirror_edk2.git/blobdiff - ArmPkg/Library/StandaloneMmMmuLib/AArch64/ArmMmuStandaloneMmLib.c
ArmPkg: Fix Ecc error 3002 in StandaloneMmMmuLib
[mirror_edk2.git] / ArmPkg / Library / StandaloneMmMmuLib / AArch64 / ArmMmuStandaloneMmLib.c
index 5f453d18e4156b1e076f503de7c56ada411aaa25..31672ae5cf4d22a52db885569227530d50a58fb1 100644 (file)
@@ -101,7 +101,7 @@ SendMemoryPermissionRequest (
   }\r
 \r
   // Check error response from Callee.\r
-  if (*RetVal & BIT31) {\r
+  if ((*RetVal & BIT31) != 0) {\r
     // Bit 31 set means there is an error retured\r
     // See [1], Section 13.5.5.1 MM_SP_MEMORY_ATTRIBUTES_GET_AARCH64 and\r
     // Section 13.5.5.2 MM_SP_MEMORY_ATTRIBUTES_SET_AARCH64.\r