Fix non-boolean comparison expression.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10165 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
lgao4
2010-03-03 05:40:19 +00:00
parent 667ffa38d1
commit de558d9dfe
3 changed files with 5 additions and 5 deletions

View File

@@ -898,7 +898,7 @@ AppendPciDevicePath (
return ReturnDevicePath;
}
}
if (ThisFunc == 0 && !(PciPtr->Hdr.HeaderType & HEADER_TYPE_MULTI_FUNCTION)) {
if (ThisFunc == 0 && ((PciPtr->Hdr.HeaderType & HEADER_TYPE_MULTI_FUNCTION) != HEADER_TYPE_MULTI_FUNCTION)) {
//
// Skip sub functions, this is not a multi function device
//