diff options
author | Ruiyu Ni <ruiyu.ni@intel.com> | 2018-10-25 11:19:14 +0800 |
---|---|---|
committer | Ruiyu Ni <ruiyu.ni@intel.com> | 2018-10-25 11:19:29 +0800 |
commit | 0bc7448ad2eafa6f51172c34d24f6a757d5ecf32 (patch) | |
tree | 987156070dd20dad1edce38a60540b597f3acef5 | |
parent | c637c60273447736b06be971d647cd5e5d2035b8 (diff) | |
download | edk2-0bc7448ad2eafa6f51172c34d24f6a757d5ecf32.tar.gz edk2-0bc7448ad2eafa6f51172c34d24f6a757d5ecf32.tar.bz2 edk2-0bc7448ad2eafa6f51172c34d24f6a757d5ecf32.zip |
MdeModulePkg/UsbBus: Removing trailing spaces
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Ruiyu Ni <ruiyu.ni@intel.com>
-rw-r--r-- | MdeModulePkg/Bus/Usb/UsbBusDxe/UsbDesc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/MdeModulePkg/Bus/Usb/UsbBusDxe/UsbDesc.c b/MdeModulePkg/Bus/Usb/UsbBusDxe/UsbDesc.c index 22b6a9d661..7ff31bb656 100644 --- a/MdeModulePkg/Bus/Usb/UsbBusDxe/UsbDesc.c +++ b/MdeModulePkg/Bus/Usb/UsbBusDxe/UsbDesc.c @@ -184,7 +184,7 @@ UsbCreateDesc ( }
//
- // Total length is too small that cannot hold the single descriptor header plus data.
+ // Total length is too small that cannot hold the single descriptor header plus data.
//
if (Len <= sizeof (USB_DESC_HEAD)) {
DEBUG ((DEBUG_ERROR, "UsbCreateDesc: met mal-format descriptor, total length = %d!\n", Len));
@@ -658,7 +658,7 @@ UsbGetOneString ( //
// Reject if Length even cannot cover itself, or odd because Unicode string byte length should be even.
//
- if (EFI_ERROR (Status) ||
+ if (EFI_ERROR (Status) ||
(Desc.Length < OFFSET_OF (EFI_USB_STRING_DESCRIPTOR, Length) + sizeof (Desc.Length)) ||
(Desc.Length % 2 != 0)
) {
|