summaryrefslogtreecommitdiff
path: root/MdeModulePkg/Bus/Scsi
diff options
context:
space:
mode:
authorjji4 <jji4@6f19259b-4bc3-4df7-8a09-765794883524>2008-12-17 09:20:16 +0000
committerjji4 <jji4@6f19259b-4bc3-4df7-8a09-765794883524>2008-12-17 09:20:16 +0000
commit6c94a00d0e4ae6e8cb9814db5b77e13644045f2f (patch)
treed53f57820263063ea3e5161de09984e09dcb52ec /MdeModulePkg/Bus/Scsi
parentcd15d4715cca6f32a5bab1095c41a128b62dd3ad (diff)
downloadedk2-platforms-6c94a00d0e4ae6e8cb9814db5b77e13644045f2f.tar.xz
Some codes have been altered and replaced by library functions which makes more efficient and rational.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@7065 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdeModulePkg/Bus/Scsi')
-rw-r--r--MdeModulePkg/Bus/Scsi/ScsiBusDxe/ScsiBus.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/MdeModulePkg/Bus/Scsi/ScsiBusDxe/ScsiBus.c b/MdeModulePkg/Bus/Scsi/ScsiBusDxe/ScsiBus.c
index 9b9a5d5e14..7ee8c50728 100644
--- a/MdeModulePkg/Bus/Scsi/ScsiBusDxe/ScsiBus.c
+++ b/MdeModulePkg/Bus/Scsi/ScsiBusDxe/ScsiBus.c
@@ -552,7 +552,7 @@ SCSIBusDriverBindingStop (
This->DriverBindingHandle,
Controller
);
- gBS->FreePool (ScsiBusDev);
+ FreePool (ScsiBusDev);
return EFI_SUCCESS;
}
@@ -624,7 +624,7 @@ SCSIBusDriverBindingStop (
);
}
} else {
- gBS->FreePool (ScsiIoDevice);
+ FreePool (ScsiIoDevice);
}
}
@@ -997,6 +997,7 @@ ScsiScanCreateDevice (
//
// Set Device Path
//
+ ScsiDevicePath = NULL;
if (ScsiIoDevice->ExtScsiSupport){
Status = ScsiIoDevice->ExtScsiPassThru->BuildDevicePath (
ScsiIoDevice->ExtScsiPassThru,
@@ -1030,10 +1031,10 @@ ScsiScanCreateDevice (
// ScsiPassThru->BuildDevicePath() function; It is no longer used
// after EfiAppendDevicePathNode,so free the memory it occupies.
//
- gBS->FreePool (ScsiDevicePath);
+ FreePool (ScsiDevicePath);
if (ScsiIoDevice->DevicePath == NULL) {
- gBS->FreePool (ScsiIoDevice);
+ FreePool (ScsiIoDevice);
return EFI_OUT_OF_RESOURCES;
}