From 69da1e7c48c81598b016a6298f51de4630adcfc0 Mon Sep 17 00:00:00 2001 From: jljusten Date: Sun, 23 Nov 2008 23:47:14 +0000 Subject: [PATCH] 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 --- DuetPkg/PciBusNoEnumerationDxe/PciDeviceSupport.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;