mirror of https://github.com/acidanthera/audk.git
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:
parent
9dd44c0be8
commit
5c7e09cbe2
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue