From af3a71b85b1810be7b9a6e0ec5a85b698473e636 Mon Sep 17 00:00:00 2001 From: erictian Date: Mon, 18 Jun 2012 06:16:55 +0000 Subject: [PATCH] MdeMdeModulePkg/Usb: Coding style alignment Signed-off-by: Feng Tian Reviewed-by: Eric Dong git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13459 6f19259b-4bc3-4df7-8a09-765794883524 --- .../Usb/UsbMouseAbsolutePointerDxe/UsbMouseAbsolutePointer.c | 4 ++-- 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; }