]> git.proxmox.com Git - mirror_edk2.git/commitdiff
Fix warning generated by GCC. This warning could have been resolved
authorjljusten <jljusten@6f19259b-4bc3-4df7-8a09-765794883524>
Sun, 23 Nov 2008 23:47:14 +0000 (23:47 +0000)
committerjljusten <jljusten@6f19259b-4bc3-4df7-8a09-765794883524>
Sun, 23 Nov 2008 23:47:14 +0000 (23:47 +0000)
with additional parenthesis, but I think the logic was previously
incorrect.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@6682 6f19259b-4bc3-4df7-8a09-765794883524

DuetPkg/PciBusNoEnumerationDxe/PciDeviceSupport.c

index 83ab7de0f608363a2cdb7b4b014c76f8259876e7..d9327d43e72d3055c9004a64e196545fbc2635bc 100644 (file)
@@ -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