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:
@@ -121,13 +121,13 @@ UsbBotInit (
|
||||
if (Context != NULL) {
|
||||
*Context = UsbBot;
|
||||
} else {
|
||||
gBS->FreePool (UsbBot);
|
||||
FreePool (UsbBot);
|
||||
}
|
||||
|
||||
return EFI_SUCCESS;
|
||||
|
||||
ON_ERROR:
|
||||
gBS->FreePool (UsbBot);
|
||||
FreePool (UsbBot);
|
||||
return Status;
|
||||
}
|
||||
|
||||
@@ -587,7 +587,7 @@ UsbBotCleanUp (
|
||||
IN VOID *Context
|
||||
)
|
||||
{
|
||||
gBS->FreePool (Context);
|
||||
FreePool (Context);
|
||||
return EFI_SUCCESS;
|
||||
}
|
||||
|
||||
|
@@ -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