mirror of https://github.com/acidanthera/audk.git
Remove unnecessary use of gEfiStatusCodeSpecificDataGuid
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@8429 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
0ca9ea41f9
commit
8b35a9caa4
|
@ -208,20 +208,8 @@ IsaBusControllerDriverStart (
|
||||||
//
|
//
|
||||||
// Local variables declaration for StatusCode reporting
|
// Local variables declaration for StatusCode reporting
|
||||||
//
|
//
|
||||||
EFI_RESOURCE_ALLOC_FAILURE_ERROR_DATA AllocFailExtendedData;
|
|
||||||
EFI_DEVICE_PATH_PROTOCOL *DevicePathData;
|
EFI_DEVICE_PATH_PROTOCOL *DevicePathData;
|
||||||
|
|
||||||
//
|
|
||||||
// Initialize status code structure
|
|
||||||
//
|
|
||||||
AllocFailExtendedData.DataHeader.HeaderSize = sizeof (EFI_STATUS_CODE_DATA);
|
|
||||||
AllocFailExtendedData.DataHeader.Size = sizeof (EFI_RESOURCE_ALLOC_FAILURE_ERROR_DATA) - sizeof (EFI_STATUS_CODE_DATA);
|
|
||||||
CopyMem (
|
|
||||||
&AllocFailExtendedData.DataHeader.Type,
|
|
||||||
&gEfiStatusCodeSpecificDataGuid,
|
|
||||||
sizeof (EFI_GUID)
|
|
||||||
);
|
|
||||||
|
|
||||||
//
|
//
|
||||||
// Open Device Path Protocol
|
// Open Device Path Protocol
|
||||||
//
|
//
|
||||||
|
@ -358,7 +346,6 @@ IsaBusControllerDriverStart (
|
||||||
ParentDevicePath,
|
ParentDevicePath,
|
||||||
ResourceList,
|
ResourceList,
|
||||||
&DevicePathData
|
&DevicePathData
|
||||||
//&AllocFailExtendedData.DevicePath
|
|
||||||
);
|
);
|
||||||
|
|
||||||
if (EFI_ERROR (Status)) {
|
if (EFI_ERROR (Status)) {
|
||||||
|
@ -381,9 +368,6 @@ IsaBusControllerDriverStart (
|
||||||
//
|
//
|
||||||
// It's hard to tell which resource conflicts
|
// It's hard to tell which resource conflicts
|
||||||
//
|
//
|
||||||
AllocFailExtendedData.Bar = 0;
|
|
||||||
AllocFailExtendedData.ReqRes = NULL;
|
|
||||||
AllocFailExtendedData.AllocRes = NULL;
|
|
||||||
REPORT_STATUS_CODE_WITH_DEVICE_PATH (
|
REPORT_STATUS_CODE_WITH_DEVICE_PATH (
|
||||||
EFI_ERROR_CODE,
|
EFI_ERROR_CODE,
|
||||||
(EFI_IO_BUS_LPC | EFI_IOB_EC_RESOURCE_CONFLICT),
|
(EFI_IO_BUS_LPC | EFI_IOB_EC_RESOURCE_CONFLICT),
|
||||||
|
|
|
@ -60,9 +60,6 @@
|
||||||
UefiDriverEntryPoint
|
UefiDriverEntryPoint
|
||||||
DebugLib
|
DebugLib
|
||||||
|
|
||||||
[Guids]
|
|
||||||
gEfiStatusCodeSpecificDataGuid # ALWAYS_CONSUMED
|
|
||||||
|
|
||||||
[Protocols]
|
[Protocols]
|
||||||
gEfiIsaIoProtocolGuid # PROTOCOL BY_START
|
gEfiIsaIoProtocolGuid # PROTOCOL BY_START
|
||||||
gEfiIsaAcpiProtocolGuid # PROTOCOL TO_START
|
gEfiIsaAcpiProtocolGuid # PROTOCOL TO_START
|
||||||
|
|
Loading…
Reference in New Issue