diff options
Diffstat (limited to 'MdeModulePkg/Bus/Usb')
-rw-r--r-- | MdeModulePkg/Bus/Usb/UsbMouseAbsolutePointerDxe/UsbMouseAbsolutePointer.c | 4 | ||||
-rw-r--r-- | MdeModulePkg/Bus/Usb/UsbMouseDxe/UsbMouse.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/MdeModulePkg/Bus/Usb/UsbMouseAbsolutePointerDxe/UsbMouseAbsolutePointer.c b/MdeModulePkg/Bus/Usb/UsbMouseAbsolutePointerDxe/UsbMouseAbsolutePointer.c index 32f0cb2569..c5aae8b52a 100644 --- a/MdeModulePkg/Bus/Usb/UsbMouseAbsolutePointerDxe/UsbMouseAbsolutePointer.c +++ b/MdeModulePkg/Bus/Usb/UsbMouseAbsolutePointerDxe/UsbMouseAbsolutePointer.c @@ -587,10 +587,10 @@ InitializeUsbMouseDevice ( Start = TRUE;
}
}
- if ((Start == TRUE) && (Head->Type == USB_DESC_TYPE_ENDPOINT)) {
+ if (Start && (Head->Type == USB_DESC_TYPE_ENDPOINT)) {
break;
}
- if ((Start == TRUE) && (Head->Type == USB_DESC_TYPE_HID)) {
+ if (Start && (Head->Type == USB_DESC_TYPE_HID)) {
MouseHidDesc = (EFI_USB_HID_DESCRIPTOR *)Head;
break;
}
diff --git a/MdeModulePkg/Bus/Usb/UsbMouseDxe/UsbMouse.c b/MdeModulePkg/Bus/Usb/UsbMouseDxe/UsbMouse.c index c237d7f8fc..205e92b2cb 100644 --- a/MdeModulePkg/Bus/Usb/UsbMouseDxe/UsbMouse.c +++ b/MdeModulePkg/Bus/Usb/UsbMouseDxe/UsbMouse.c @@ -587,10 +587,10 @@ InitializeUsbMouseDevice ( Start = TRUE;
}
}
- if ((Start == TRUE) && (Head->Type == USB_DESC_TYPE_ENDPOINT)) {
+ if (Start && (Head->Type == USB_DESC_TYPE_ENDPOINT)) {
break;
}
- if ((Start == TRUE) && (Head->Type == USB_DESC_TYPE_HID)) {
+ if (Start && (Head->Type == USB_DESC_TYPE_HID)) {
MouseHidDesc = (EFI_USB_HID_DESCRIPTOR *)Head;
break;
}
|