]> git.proxmox.com Git - mirror_edk2.git/blobdiff - EmbeddedPkg/Library/CoherentDmaLib/CoherentDmaLib.c
EmbeddedPkg/CoherentDmaLib: Fix typo in DmaAlignedBuffer
[mirror_edk2.git] / EmbeddedPkg / Library / CoherentDmaLib / CoherentDmaLib.c
index 564db83c901c0a80a78fed729c0d5caacabf6f42..8ca9e6aa5b1b0ba233cf78cc70e74bf29dba8cbd 100644 (file)
@@ -154,7 +154,7 @@ DmaAllocateAlignedBuffer (
   //\r
   if (MemoryType == EfiBootServicesData) {\r
     *HostAddress = AllocateAlignedPages (Pages, Alignment);\r
-  } else if (MemoryType != EfiRuntimeServicesData) {\r
+  } else if (MemoryType == EfiRuntimeServicesData) {\r
     *HostAddress = AllocateAlignedRuntimePages (Pages, Alignment);\r
   } else {\r
     return EFI_INVALID_PARAMETER;\r