]> git.proxmox.com Git - mirror_edk2.git/commitdiff
MdeModulePkg: Fix EHCI module build warning reported by VS2005 tool chain.
authorerictian <erictian@6f19259b-4bc3-4df7-8a09-765794883524>
Wed, 2 May 2012 06:21:43 +0000 (06:21 +0000)
committererictian <erictian@6f19259b-4bc3-4df7-8a09-765794883524>
Wed, 2 May 2012 06:21:43 +0000 (06:21 +0000)
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

MdeModulePkg/Bus/Pci/EhciDxe/Ehci.c

index 64a0943ddcb952812d0212138d3c4af2990eff88..5ff9b80560aebd1a6a63021d4812c6017a546f43 100644 (file)
@@ -10,7 +10,7 @@
   This way avoids the control transfer on a shared port between EHCI and companion host\r
   controller when UHCI gets attached earlier than EHCI and a USB 2.0 device inserts.\r
 \r
-Copyright (c) 2006 - 2011, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2006 - 2012, Intel Corporation. All rights reserved.<BR>\r
 This program and the accompanying materials\r
 are licensed and made available under the terms and conditions of the BSD License\r
 which accompanies this distribution.  The full text of the license may be found at\r
@@ -1524,7 +1524,7 @@ EhcGetUsbDebugPortInfo (
   }\r
 \r
   Ehc->DebugPortOffset = DebugPort & 0x1FFF;\r
-  Ehc->DebugPortBarNum = (DebugPort >> 13) - 1;\r
+  Ehc->DebugPortBarNum = (UINT8)((DebugPort >> 13) - 1);\r
   Ehc->DebugPortNum    = (UINT8)((Ehc->HcStructParams & 0x00F00000) >> 20);\r
 \r
   return EFI_SUCCESS;\r