summaryrefslogtreecommitdiff
path: root/MdeModulePkg/Bus
diff options
context:
space:
mode:
authorerictian <erictian@6f19259b-4bc3-4df7-8a09-765794883524>2012-05-02 06:21:43 +0000
committererictian <erictian@6f19259b-4bc3-4df7-8a09-765794883524>2012-05-02 06:21:43 +0000
commit5e10caa1c14589ecef1ce40b8743e07bbfa082ad (patch)
tree1e1f7021436e12f317b2073d6d5479b8f65b6261 /MdeModulePkg/Bus
parent3a69f7cbe7289fae061ce3d0facda254bf3c82e5 (diff)
downloadedk2-5e10caa1c14589ecef1ce40b8743e07bbfa082ad.zip
edk2-5e10caa1c14589ecef1ce40b8743e07bbfa082ad.tar.gz
edk2-5e10caa1c14589ecef1ce40b8743e07bbfa082ad.tar.bz2
MdeModulePkg: Fix EHCI module build warning reported by VS2005 tool chain.
Signed-off-by: Feng Tian <feng.tian@intel.com> Reviewed-by: Sun Rui <rui.sun@intel.com> git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13241 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdeModulePkg/Bus')
-rw-r--r--MdeModulePkg/Bus/Pci/EhciDxe/Ehci.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/MdeModulePkg/Bus/Pci/EhciDxe/Ehci.c b/MdeModulePkg/Bus/Pci/EhciDxe/Ehci.c
index 64a0943..5ff9b80 100644
--- a/MdeModulePkg/Bus/Pci/EhciDxe/Ehci.c
+++ b/MdeModulePkg/Bus/Pci/EhciDxe/Ehci.c
@@ -10,7 +10,7 @@
This way avoids the control transfer on a shared port between EHCI and companion host
controller when UHCI gets attached earlier than EHCI and a USB 2.0 device inserts.
-Copyright (c) 2006 - 2011, Intel Corporation. All rights reserved.<BR>
+Copyright (c) 2006 - 2012, Intel Corporation. All rights reserved.<BR>
This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License
which accompanies this distribution. The full text of the license may be found at
@@ -1524,7 +1524,7 @@ EhcGetUsbDebugPortInfo (
}
Ehc->DebugPortOffset = DebugPort & 0x1FFF;
- Ehc->DebugPortBarNum = (DebugPort >> 13) - 1;
+ Ehc->DebugPortBarNum = (UINT8)((DebugPort >> 13) - 1);
Ehc->DebugPortNum = (UINT8)((Ehc->HcStructParams & 0x00F00000) >> 20);
return EFI_SUCCESS;