From: Ruiyu Ni Date: Thu, 25 Oct 2018 03:19:14 +0000 (+0800) Subject: MdeModulePkg/UsbBus: Removing trailing spaces X-Git-Tag: edk2-stable201903~735 X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=commitdiff_plain;h=0bc7448ad2eafa6f51172c34d24f6a757d5ecf32 MdeModulePkg/UsbBus: Removing trailing spaces Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Ruiyu Ni --- 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) ) {