]> git.proxmox.com Git - mirror_edk2.git/blobdiff - IntelFrameworkModulePkg/Bus/Isa/IsaBusDxe/IsaBus.c
Remove unnecessary use of gEfiStatusCodeSpecificDataGuid
[mirror_edk2.git] / IntelFrameworkModulePkg / Bus / Isa / IsaBusDxe / IsaBus.c
index 80c942e289d3142eca2120e8729f71cf7346c658..c1d091514e2524f764ee85e3ea52fab6dc704fe3 100644 (file)
@@ -208,20 +208,8 @@ IsaBusControllerDriverStart (
   //\r
   // Local variables declaration for StatusCode reporting\r
   //\r
-  EFI_RESOURCE_ALLOC_FAILURE_ERROR_DATA AllocFailExtendedData;\r
   EFI_DEVICE_PATH_PROTOCOL              *DevicePathData;\r
 \r
-  //\r
-  // Initialize status code structure\r
-  //\r
-  AllocFailExtendedData.DataHeader.HeaderSize = sizeof (EFI_STATUS_CODE_DATA);\r
-  AllocFailExtendedData.DataHeader.Size = sizeof (EFI_RESOURCE_ALLOC_FAILURE_ERROR_DATA) - sizeof (EFI_STATUS_CODE_DATA);\r
-  CopyMem (\r
-    &AllocFailExtendedData.DataHeader.Type,\r
-    &gEfiStatusCodeSpecificDataGuid,\r
-    sizeof (EFI_GUID)\r
-    );\r
-\r
   //\r
   // Open Device Path Protocol\r
   //\r
@@ -358,7 +346,6 @@ IsaBusControllerDriverStart (
                ParentDevicePath,\r
                ResourceList,\r
                &DevicePathData\r
-               //&AllocFailExtendedData.DevicePath\r
                );\r
 \r
     if (EFI_ERROR (Status)) {\r
@@ -381,9 +368,6 @@ IsaBusControllerDriverStart (
       //\r
       // It's hard to tell which resource conflicts\r
       //\r
-      AllocFailExtendedData.Bar       = 0;\r
-      AllocFailExtendedData.ReqRes    = NULL;\r
-      AllocFailExtendedData.AllocRes  = NULL;\r
       REPORT_STATUS_CODE_WITH_DEVICE_PATH (\r
          EFI_ERROR_CODE,\r
          (EFI_IO_BUS_LPC | EFI_IOB_EC_RESOURCE_CONFLICT),\r