diff options
author | eric_tian <eric_tian@6f19259b-4bc3-4df7-8a09-765794883524> | 2008-07-02 05:45:04 +0000 |
---|---|---|
committer | eric_tian <eric_tian@6f19259b-4bc3-4df7-8a09-765794883524> | 2008-07-02 05:45:04 +0000 |
commit | a92d4e8a8eb1ab57d86f79a89b733cff6e47235b (patch) | |
tree | 222f9f6a7a17956ebc1a4d0efbab629fa92b8b92 | |
parent | a7f3d10548e1aedabb3c9387ae91e8e3cf0945ec (diff) | |
download | edk2-a92d4e8a8eb1ab57d86f79a89b733cff6e47235b.tar.gz edk2-a92d4e8a8eb1ab57d86f79a89b733cff6e47235b.tar.bz2 edk2-a92d4e8a8eb1ab57d86f79a89b733cff6e47235b.zip |
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
-rw-r--r-- | MdeModulePkg/Bus/Pci/EhciDxe/Ehci.c | 2 | ||||
-rw-r--r-- | MdeModulePkg/Bus/Pci/UhciDxe/Uhci.c | 2 | ||||
-rw-r--r-- | 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;
}
|