]> git.proxmox.com Git - mirror_edk2.git/commitdiff
Some codes have been altered and replaced by library functions which makes more effic...
authorjji4 <jji4@6f19259b-4bc3-4df7-8a09-765794883524>
Wed, 17 Dec 2008 09:20:16 +0000 (09:20 +0000)
committerjji4 <jji4@6f19259b-4bc3-4df7-8a09-765794883524>
Wed, 17 Dec 2008 09:20:16 +0000 (09:20 +0000)
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@7065 6f19259b-4bc3-4df7-8a09-765794883524

MdeModulePkg/Bus/Scsi/ScsiBusDxe/ScsiBus.c

index 9b9a5d5e14f7f92aeeb8d7983abd34acaa58643e..7ee8c50728524025b15c393d3ff860d788853ccd 100644 (file)
@@ -552,7 +552,7 @@ SCSIBusDriverBindingStop (
            This->DriverBindingHandle,\r
            Controller\r
            );\r
-    gBS->FreePool (ScsiBusDev);\r
+    FreePool (ScsiBusDev);\r
     return EFI_SUCCESS;\r
   }\r
 \r
@@ -624,7 +624,7 @@ SCSIBusDriverBindingStop (
                );\r
       }\r
     } else {\r
-      gBS->FreePool (ScsiIoDevice);\r
+      FreePool (ScsiIoDevice);\r
     }\r
   }\r
 \r
@@ -997,6 +997,7 @@ ScsiScanCreateDevice (
   //\r
   // Set Device Path\r
   //\r
+  ScsiDevicePath = NULL;\r
   if (ScsiIoDevice->ExtScsiSupport){\r
     Status = ScsiIoDevice->ExtScsiPassThru->BuildDevicePath (\r
                                           ScsiIoDevice->ExtScsiPassThru,\r
@@ -1030,10 +1031,10 @@ ScsiScanCreateDevice (
   // ScsiPassThru->BuildDevicePath() function; It is no longer used\r
   // after EfiAppendDevicePathNode,so free the memory it occupies.\r
   //\r
-  gBS->FreePool (ScsiDevicePath);\r
+  FreePool (ScsiDevicePath);\r
 \r
   if (ScsiIoDevice->DevicePath == NULL) {\r
-    gBS->FreePool (ScsiIoDevice);\r
+    FreePool (ScsiIoDevice);\r
     return EFI_OUT_OF_RESOURCES;\r
   }\r
 \r