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
This commit is contained in:
jljusten 2008-11-23 23:47:14 +00:00
parent 2358368cb2
commit 69da1e7c48
1 changed files with 1 additions and 1 deletions

View File

@ -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;