diff options
author | qhuang8 <qhuang8@6f19259b-4bc3-4df7-8a09-765794883524> | 2007-03-08 07:04:05 +0000 |
---|---|---|
committer | qhuang8 <qhuang8@6f19259b-4bc3-4df7-8a09-765794883524> | 2007-03-08 07:04:05 +0000 |
commit | df557cca2f35a759a92c4b8e26c410505027d4fd (patch) | |
tree | 936ad735ca6e6894b898c8d7302a62400b05a3c0 /EdkModulePkg/Bus/Usb | |
parent | 5b396948e7501bc0ea4b655f7b3c50dbd14552c6 (diff) | |
download | edk2-platforms-df557cca2f35a759a92c4b8e26c410505027d4fd.tar.xz |
1. Sync definition of EFI_DEBUG_IMAGE_INFO with UEFI spec
2. Make performance data for End of BDS is not recorded in Boot Manager Boot
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2431 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'EdkModulePkg/Bus/Usb')
-rw-r--r-- | EdkModulePkg/Bus/Usb/UsbBot/Dxe/bot.c | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/EdkModulePkg/Bus/Usb/UsbBot/Dxe/bot.c b/EdkModulePkg/Bus/Usb/UsbBot/Dxe/bot.c index e6a5be480b..fef5de9387 100644 --- a/EdkModulePkg/Bus/Usb/UsbBot/Dxe/bot.c +++ b/EdkModulePkg/Bus/Usb/UsbBot/Dxe/bot.c @@ -608,17 +608,7 @@ BotCommandPhase ( cbw.dCBWSignature = CBWSIG;
cbw.dCBWTag = 0x01;
cbw.dCBWDataTransferLength = DataTransferLength;
- switch (Direction) {
- case EfiUsbDataOut:
- case EfiUsbNoData:
- cbw.bmCBWFlags = 0;
- break;
- case EfiUsbDataIn:
- cbw.bmCBWFlags = 0x80;
- break;
- default:
- break;
- }
+ cbw.bmCBWFlags = (UINT8) ((Direction == EfiUsbDataIn) ? 0x80 : 0);
cbw.bCBWCBLength = CommandSize;
CopyMem (cbw.CBWCB, Command, CommandSize);
|