summaryrefslogtreecommitdiff
path: root/MdeModulePkg/Bus/Pci
diff options
context:
space:
mode:
authoreric_tian <eric_tian@6f19259b-4bc3-4df7-8a09-765794883524>2008-07-02 05:45:04 +0000
committereric_tian <eric_tian@6f19259b-4bc3-4df7-8a09-765794883524>2008-07-02 05:45:04 +0000
commita92d4e8a8eb1ab57d86f79a89b733cff6e47235b (patch)
tree222f9f6a7a17956ebc1a4d0efbab629fa92b8b92 /MdeModulePkg/Bus/Pci
parenta7f3d10548e1aedabb3c9387ae91e8e3cf0945ec (diff)
downloadedk2-platforms-a92d4e8a8eb1ab57d86f79a89b733cff6e47235b.tar.xz
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
Diffstat (limited to 'MdeModulePkg/Bus/Pci')
-rw-r--r--MdeModulePkg/Bus/Pci/EhciDxe/Ehci.c2
-rw-r--r--MdeModulePkg/Bus/Pci/UhciDxe/Uhci.c2
2 files changed, 2 insertions, 2 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
//