mirror of https://github.com/acidanthera/audk.git
Fix the bug that destructor should sync with constructor
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2597 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
ceffbc1900
commit
15b9277fb8
|
@ -113,7 +113,7 @@ RuntimeDriverLibConstruct (
|
|||
|
||||
ASSERT_EFI_ERROR (Status);
|
||||
|
||||
return EFI_SUCCESS;
|
||||
return Status;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -136,13 +136,11 @@ RuntimeDriverLibDeconstruct (
|
|||
//
|
||||
// Close SetVirtualAddressMap () notify function
|
||||
//
|
||||
if (_gDriverSetVirtualAddressMapEvent[0] != NULL) {
|
||||
ASSERT (gBS != NULL);
|
||||
Status = gBS->CloseEvent (mEfiVirtualNotifyEvent);
|
||||
ASSERT_EFI_ERROR (Status);
|
||||
}
|
||||
|
||||
return EFI_SUCCESS;
|
||||
return Status;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue