Minor refinement for USB modules.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@7257 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
@@ -146,13 +146,13 @@ UsbCbiInit (
|
||||
if (Context != NULL) {
|
||||
*Context = UsbCbi;
|
||||
} else {
|
||||
gBS->FreePool (UsbCbi);
|
||||
FreePool (UsbCbi);
|
||||
}
|
||||
|
||||
return EFI_SUCCESS;
|
||||
|
||||
ON_ERROR:
|
||||
gBS->FreePool (UsbCbi);
|
||||
FreePool (UsbCbi);
|
||||
return Status;
|
||||
}
|
||||
|
||||
@@ -605,6 +605,6 @@ UsbCbiCleanUp (
|
||||
IN VOID *Context
|
||||
)
|
||||
{
|
||||
gBS->FreePool (Context);
|
||||
FreePool (Context);
|
||||
return EFI_SUCCESS;
|
||||
}
|
||||
|
Reference in New Issue
Block a user