]> git.proxmox.com Git - mirror_edk2.git/blobdiff - DuetPkg/PciBusNoEnumerationDxe/PciDeviceSupport.c
ShellBinPkg: Arm/AArch64 Shell binary update.
[mirror_edk2.git] / DuetPkg / PciBusNoEnumerationDxe / PciDeviceSupport.c
index a33ce38af7d78680b0909f79baef936551b70166..bae266df64623aaa2493a1880f203c8acd1daeab 100644 (file)
@@ -1,7 +1,7 @@
 /*++\r
 \r
-Copyright (c) 2005 - 2006, Intel Corporation                                                         \r
-All rights reserved. This program and the accompanying materials                          \r
+Copyright (c) 2005 - 2006, Intel Corporation. All rights reserved.<BR>\r
+This program and the accompanying materials                          \r
 are licensed and made available under the terms and conditions of the BSD License         \r
 which accompanies this distribution.  The full text of the license may be found at        \r
 http://opensource.org/licenses/bsd-license.php                                            \r
@@ -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