add security check and remove un-necessary return sentence.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9321 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
vanjeff 2009-09-29 05:47:23 +00:00
parent 9dd44c0be8
commit 5c7e09cbe2
1 changed files with 1 additions and 3 deletions

View File

@ -1319,10 +1319,8 @@ ProgramVfBar (
UINT64 Address;
UINT32 Address32;
ASSERT (Node->Bar < PCI_MAX_BAR);
ASSERT (Node->Virtual);
if (!Node->Virtual) {
return EFI_UNSUPPORTED;
}
Address = 0;
PciIo = &(Node->PciDev->PciIo);