summaryrefslogtreecommitdiff
path: root/MdeModulePkg/Bus/Usb/UsbMassStorageDxe
diff options
context:
space:
mode:
authorxli24 <xli24@6f19259b-4bc3-4df7-8a09-765794883524>2009-01-13 08:46:31 +0000
committerxli24 <xli24@6f19259b-4bc3-4df7-8a09-765794883524>2009-01-13 08:46:31 +0000
commitc92e277d99335fa827994e410a3dc0830904a264 (patch)
tree67a5fba32dbd73d284523d82621d5f77a593f76c /MdeModulePkg/Bus/Usb/UsbMassStorageDxe
parent55a64ae0f40421a26dee619dbc3f1e8096081a97 (diff)
downloadedk2-platforms-c92e277d99335fa827994e410a3dc0830904a264.tar.xz
Minor refinement for USB modules.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@7257 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdeModulePkg/Bus/Usb/UsbMassStorageDxe')
-rw-r--r--MdeModulePkg/Bus/Usb/UsbMassStorageDxe/UsbMassBot.c6
-rw-r--r--MdeModulePkg/Bus/Usb/UsbMassStorageDxe/UsbMassCbi.c6
2 files changed, 6 insertions, 6 deletions
diff --git a/MdeModulePkg/Bus/Usb/UsbMassStorageDxe/UsbMassBot.c b/MdeModulePkg/Bus/Usb/UsbMassStorageDxe/UsbMassBot.c
index c6c8f8d11b..ab669463c8 100644
--- a/MdeModulePkg/Bus/Usb/UsbMassStorageDxe/UsbMassBot.c
+++ b/MdeModulePkg/Bus/Usb/UsbMassStorageDxe/UsbMassBot.c
@@ -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;
}
diff --git a/MdeModulePkg/Bus/Usb/UsbMassStorageDxe/UsbMassCbi.c b/MdeModulePkg/Bus/Usb/UsbMassStorageDxe/UsbMassCbi.c
index d1424e2f75..4de18d4bb9 100644
--- a/MdeModulePkg/Bus/Usb/UsbMassStorageDxe/UsbMassCbi.c
+++ b/MdeModulePkg/Bus/Usb/UsbMassStorageDxe/UsbMassCbi.c
@@ -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;
}