mirror of
https://github.com/acidanthera/audk.git
synced 2025-07-24 06:04:52 +02:00
Make USB Stack code pass ECC tool check.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5405 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
a7f3d10548
commit
a92d4e8a8e
@ -1640,7 +1640,7 @@ FREE_POOL:
|
|||||||
gBS->FreePool (Ehc);
|
gBS->FreePool (Ehc);
|
||||||
|
|
||||||
CLOSE_PCIIO:
|
CLOSE_PCIIO:
|
||||||
if (PciAttributesSaved == TRUE) {
|
if (PciAttributesSaved) {
|
||||||
//
|
//
|
||||||
// Restore original PCI attributes
|
// Restore original PCI attributes
|
||||||
//
|
//
|
||||||
|
@ -1756,7 +1756,7 @@ FREE_UHC:
|
|||||||
UhciFreeDev (Uhc);
|
UhciFreeDev (Uhc);
|
||||||
|
|
||||||
CLOSE_PCIIO:
|
CLOSE_PCIIO:
|
||||||
if (PciAttributesSaved == TRUE) {
|
if (PciAttributesSaved) {
|
||||||
//
|
//
|
||||||
// Restore original PCI attributes
|
// Restore original PCI attributes
|
||||||
//
|
//
|
||||||
|
@ -817,7 +817,7 @@ UsbIoPortReset (
|
|||||||
UsbIf = USB_INTERFACE_FROM_USBIO (This);
|
UsbIf = USB_INTERFACE_FROM_USBIO (This);
|
||||||
Dev = UsbIf->Device;
|
Dev = UsbIf->Device;
|
||||||
|
|
||||||
if (UsbIf->IsHub == TRUE) {
|
if (UsbIf->IsHub) {
|
||||||
Status = EFI_INVALID_PARAMETER;
|
Status = EFI_INVALID_PARAMETER;
|
||||||
goto ON_EXIT;
|
goto ON_EXIT;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user