diff options
author | erictian <erictian@6f19259b-4bc3-4df7-8a09-765794883524> | 2012-06-18 06:16:55 +0000 |
---|---|---|
committer | erictian <erictian@6f19259b-4bc3-4df7-8a09-765794883524> | 2012-06-18 06:16:55 +0000 |
commit | af3a71b85b1810be7b9a6e0ec5a85b698473e636 (patch) | |
tree | 05e71e1d13c294f1327fb8ed1afef82961e90457 /MdeModulePkg/Bus/Usb | |
parent | d69a7bc71207e4e607cfbde652d63adad7c0bd2d (diff) | |
download | edk2-af3a71b85b1810be7b9a6e0ec5a85b698473e636.tar.gz edk2-af3a71b85b1810be7b9a6e0ec5a85b698473e636.tar.bz2 edk2-af3a71b85b1810be7b9a6e0ec5a85b698473e636.zip |
MdeMdeModulePkg/Usb: Coding style alignment
Signed-off-by: Feng Tian <feng.tian@intel.com>
Reviewed-by: Eric Dong <eric.dong@intel.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13459 6f19259b-4bc3-4df7-8a09-765794883524
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;
}
|