Remove two global variable: mUsbCapabilityLen and mDeviceSpeed and integrate them into USB2_HC_DEV.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2235 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
@ -79,7 +79,7 @@ Returns:
|
||||
0
|
||||
);
|
||||
if (EFI_ERROR (Status)) {
|
||||
DEBUG ((gEHCErrorLevel, "PciIo->AllocateBuffer Failed\n"));
|
||||
DEBUG ((gEHCErrorLevel, "EHCI: PciIo->AllocateBuffer Failed\n"));
|
||||
Status = EFI_OUT_OF_RESOURCES;
|
||||
goto exit;
|
||||
}
|
||||
@ -93,7 +93,7 @@ Returns:
|
||||
&Map
|
||||
);
|
||||
if (EFI_ERROR (Status) || (BufferSizeInBytes != EFI_PAGE_SIZE)) {
|
||||
DEBUG ((gEHCErrorLevel, "PciIo->MapBuffer Failed\n"));
|
||||
DEBUG ((gEHCErrorLevel, "EHCI: PciIo->MapBuffer Failed\n"));
|
||||
Status = EFI_OUT_OF_RESOURCES;
|
||||
goto free_buffer;
|
||||
}
|
||||
@ -107,7 +107,7 @@ Returns:
|
||||
|
||||
Status = SetCtrlDataStructSeg (HcDev);
|
||||
if (EFI_ERROR (Status)) {
|
||||
DEBUG ((gEHCErrorLevel, "SetCtrlDataStructSeg Failed\n"));
|
||||
DEBUG ((gEHCErrorLevel, "EHCI: SetCtrlDataStructSeg Failed\n"));
|
||||
Status = EFI_DEVICE_ERROR;
|
||||
goto unmap_buffer;
|
||||
}
|
||||
|
Reference in New Issue
Block a user