summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--MdeModulePkg/Bus/Pci/EhciDxe/Ehci.c2
-rw-r--r--MdeModulePkg/Bus/Pci/UhciDxe/Uhci.c2
-rw-r--r--MdeModulePkg/Bus/Usb/UsbBusDxe/UsbBus.c2
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;
}