mirror of https://github.com/acidanthera/audk.git
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);
|
||||
|
||||
CLOSE_PCIIO:
|
||||
if (PciAttributesSaved == TRUE) {
|
||||
if (PciAttributesSaved) {
|
||||
//
|
||||
// Restore original PCI attributes
|
||||
//
|
||||
|
|
|
@ -1756,7 +1756,7 @@ FREE_UHC:
|
|||
UhciFreeDev (Uhc);
|
||||
|
||||
CLOSE_PCIIO:
|
||||
if (PciAttributesSaved == TRUE) {
|
||||
if (PciAttributesSaved) {
|
||||
//
|
||||
// Restore original PCI attributes
|
||||
//
|
||||
|
|
|
@ -817,7 +817,7 @@ UsbIoPortReset (
|
|||
UsbIf = USB_INTERFACE_FROM_USBIO (This);
|
||||
Dev = UsbIf->Device;
|
||||
|
||||
if (UsbIf->IsHub == TRUE) {
|
||||
if (UsbIf->IsHub) {
|
||||
Status = EFI_INVALID_PARAMETER;
|
||||
goto ON_EXIT;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue