X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=blobdiff_plain;f=DuetPkg%2FPciRootBridgeNoEnumerationDxe%2FIpf%2FPcatIo.c;h=97857c298186e7ef1a41895647d9e815afd7cd3a;hp=47f5ff458d27637643210f3fb3a641d35f2d690d;hb=579ac2064ba4dc12ffe8306424e675c08892b5df;hpb=b29a823d91ac4d8abd87e58172e32d7b0b43be8d diff --git a/DuetPkg/PciRootBridgeNoEnumerationDxe/Ipf/PcatIo.c b/DuetPkg/PciRootBridgeNoEnumerationDxe/Ipf/PcatIo.c index 47f5ff458d..97857c2981 100644 --- a/DuetPkg/PciRootBridgeNoEnumerationDxe/Ipf/PcatIo.c +++ b/DuetPkg/PciRootBridgeNoEnumerationDxe/Ipf/PcatIo.c @@ -1,7 +1,7 @@ /*++ -Copyright (c) 2005 - 2009, Intel Corporation -All rights reserved. This program and the accompanying materials +Copyright (c) 2005 - 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 http://opensource.org/licenses/bsd-license.php @@ -81,7 +81,7 @@ PcatRootBridgeIoIoRead ( return EFI_INVALID_PARAMETER; } - if (Width < 0 || Width >= EfiPciWidthMaximum) { + if ((UINT32)Width >= EfiPciWidthMaximum) { return EFI_INVALID_PARAMETER; }