]> git.proxmox.com Git - mirror_edk2.git/blobdiff - DuetPkg/PciBusNoEnumerationDxe/PciDeviceSupport.c
Port Intel .asm to GNU .S
[mirror_edk2.git] / DuetPkg / PciBusNoEnumerationDxe / PciDeviceSupport.c
index a33ce38af7d78680b0909f79baef936551b70166..d9327d43e72d3055c9004a64e196545fbc2635bc 100644 (file)
@@ -598,8 +598,8 @@ Returns:
       //\r
       // Get the next device path\r
       //\r
-      CurrentDevicePath = EfiNextDevicePathNode (RemainingDevicePath);\r
-      if (EfiIsDevicePathEnd (CurrentDevicePath)) {\r
+      CurrentDevicePath = NextDevicePathNode (RemainingDevicePath);\r
+      if (IsDevicePathEnd (CurrentDevicePath)) {\r
         return EFI_SUCCESS;\r
       }\r
   \r
@@ -693,7 +693,7 @@ Returns:
     //\r
     Node.DevPath = RemainingDevicePath;\r
     if (Node.DevPath->Type != HARDWARE_DEVICE_PATH ||\r
-        Node.DevPath->SubType != HW_PCI_DP         &&\r
+        Node.DevPath->SubType != HW_PCI_DP         ||\r
         DevicePathNodeLength (Node.DevPath) != sizeof (PCI_DEVICE_PATH)\r
         ) {\r
       return EFI_UNSUPPORTED;\r