From 5e10caa1c14589ecef1ce40b8743e07bbfa082ad Mon Sep 17 00:00:00 2001 From: erictian Date: Wed, 2 May 2012 06:21:43 +0000 Subject: [PATCH] MdeModulePkg: Fix EHCI module build warning reported by VS2005 tool chain. Signed-off-by: Feng Tian Reviewed-by: Sun Rui git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13241 6f19259b-4bc3-4df7-8a09-765794883524 --- MdeModulePkg/Bus/Pci/EhciDxe/Ehci.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/MdeModulePkg/Bus/Pci/EhciDxe/Ehci.c b/MdeModulePkg/Bus/Pci/EhciDxe/Ehci.c index 64a0943ddc..5ff9b80560 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.
+Copyright (c) 2006 - 2012, Intel Corporation. All rights reserved.
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; -- 2.39.2