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:
xli24
2009-01-13 08:46:31 +00:00
parent 55a64ae0f4
commit c92e277d99
7 changed files with 90 additions and 86 deletions

View File

@@ -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;
}

View File

@@ -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;
}