summaryrefslogtreecommitdiff
path: root/DuetPkg/PciBusNoEnumerationDxe/PciDeviceSupport.c
diff options
context:
space:
mode:
authorjljusten <jljusten@6f19259b-4bc3-4df7-8a09-765794883524>2008-11-23 23:47:14 +0000
committerjljusten <jljusten@6f19259b-4bc3-4df7-8a09-765794883524>2008-11-23 23:47:14 +0000
commit69da1e7c48c81598b016a6298f51de4630adcfc0 (patch)
tree6dd5621f320ff35f963fb069f881103c3600689c /DuetPkg/PciBusNoEnumerationDxe/PciDeviceSupport.c
parent2358368cb252e2296c33d4197fd004c2d098ac64 (diff)
downloadedk2-platforms-69da1e7c48c81598b016a6298f51de4630adcfc0.tar.xz
Fix warning generated by GCC. This warning could have been resolved
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
Diffstat (limited to 'DuetPkg/PciBusNoEnumerationDxe/PciDeviceSupport.c')
-rw-r--r--DuetPkg/PciBusNoEnumerationDxe/PciDeviceSupport.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/DuetPkg/PciBusNoEnumerationDxe/PciDeviceSupport.c b/DuetPkg/PciBusNoEnumerationDxe/PciDeviceSupport.c
index 83ab7de0f6..d9327d43e7 100644
--- a/DuetPkg/PciBusNoEnumerationDxe/PciDeviceSupport.c
+++ b/DuetPkg/PciBusNoEnumerationDxe/PciDeviceSupport.c
@@ -693,7 +693,7 @@ Returns:
//
Node.DevPath = RemainingDevicePath;
if (Node.DevPath->Type != HARDWARE_DEVICE_PATH ||
- Node.DevPath->SubType != HW_PCI_DP &&
+ Node.DevPath->SubType != HW_PCI_DP ||
DevicePathNodeLength (Node.DevPath) != sizeof (PCI_DEVICE_PATH)
) {
return EFI_UNSUPPORTED;