From a92d4e8a8eb1ab57d86f79a89b733cff6e47235b Mon Sep 17 00:00:00 2001 From: eric_tian Date: Wed, 2 Jul 2008 05:45:04 +0000 Subject: [PATCH] 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 --- MdeModulePkg/Bus/Pci/EhciDxe/Ehci.c | 2 +- MdeModulePkg/Bus/Pci/UhciDxe/Uhci.c | 2 +- MdeModulePkg/Bus/Usb/UsbBusDxe/UsbBus.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/MdeModulePkg/Bus/Pci/EhciDxe/Ehci.c b/MdeModulePkg/Bus/Pci/EhciDxe/Ehci.c index 6516a9c1f8..f72ba55127 100644 --- a/MdeModulePkg/Bus/Pci/EhciDxe/Ehci.c +++ b/MdeModulePkg/Bus/Pci/EhciDxe/Ehci.c @@ -1640,7 +1640,7 @@ FREE_POOL: gBS->FreePool (Ehc); CLOSE_PCIIO: - if (PciAttributesSaved == TRUE) { + if (PciAttributesSaved) { // // Restore original PCI attributes // diff --git a/MdeModulePkg/Bus/Pci/UhciDxe/Uhci.c b/MdeModulePkg/Bus/Pci/UhciDxe/Uhci.c index 39a22b72cd..661f125149 100644 --- a/MdeModulePkg/Bus/Pci/UhciDxe/Uhci.c +++ b/MdeModulePkg/Bus/Pci/UhciDxe/Uhci.c @@ -1756,7 +1756,7 @@ FREE_UHC: UhciFreeDev (Uhc); CLOSE_PCIIO: - if (PciAttributesSaved == TRUE) { + if (PciAttributesSaved) { // // Restore original PCI attributes // diff --git a/MdeModulePkg/Bus/Usb/UsbBusDxe/UsbBus.c b/MdeModulePkg/Bus/Usb/UsbBusDxe/UsbBus.c index 5c4d4025eb..f2b7f8bd93 100644 --- a/MdeModulePkg/Bus/Usb/UsbBusDxe/UsbBus.c +++ b/MdeModulePkg/Bus/Usb/UsbBusDxe/UsbBus.c @@ -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; } -- 2.39.2