Code scrub for IdeBusDxe driver and PeiS3Lib.(undergoing)

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@8609 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
jchen20
2009-06-19 08:40:58 +00:00
parent 269e4559ae
commit e72ca438d4
10 changed files with 89 additions and 89 deletions

View File

@@ -1368,14 +1368,14 @@ ReleaseIdeResources (
IdeBlkIoDevice->Cache = NULL;
}
if (IdeBlkIoDevice->pIdData != NULL) {
gBS->FreePool (IdeBlkIoDevice->pIdData);
IdeBlkIoDevice->pIdData = NULL;
if (IdeBlkIoDevice->IdData != NULL) {
gBS->FreePool (IdeBlkIoDevice->IdData);
IdeBlkIoDevice->IdData = NULL;
}
if (IdeBlkIoDevice->pInquiryData != NULL) {
gBS->FreePool (IdeBlkIoDevice->pInquiryData);
IdeBlkIoDevice->pInquiryData = NULL;
if (IdeBlkIoDevice->InquiryData != NULL) {
gBS->FreePool (IdeBlkIoDevice->InquiryData);
IdeBlkIoDevice->InquiryData = NULL;
}
if (IdeBlkIoDevice->ControllerNameTable != NULL) {