X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=blobdiff_plain;f=DuetPkg%2FPciRootBridgeNoEnumerationDxe%2FDeviceIo.c;fp=DuetPkg%2FPciRootBridgeNoEnumerationDxe%2FDeviceIo.c;h=b9cae2b2ce6ce3fed9e68043b3e5c83e47286221;hp=20098d94eb02f1725cc339dfe4932aab0090399e;hb=3d78c020d22023d35d27b48817d73ff31a361ac7;hpb=055c829c4212f12614ad80dcd161a2b4f5cf6713 diff --git a/DuetPkg/PciRootBridgeNoEnumerationDxe/DeviceIo.c b/DuetPkg/PciRootBridgeNoEnumerationDxe/DeviceIo.c index 20098d94eb..b9cae2b2ce 100644 --- a/DuetPkg/PciRootBridgeNoEnumerationDxe/DeviceIo.c +++ b/DuetPkg/PciRootBridgeNoEnumerationDxe/DeviceIo.c @@ -1,6 +1,6 @@ /*++ -Copyright (c) 2006 - 2008, 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 @@ -363,7 +363,7 @@ Returns: Private = DEVICE_IO_PRIVATE_DATA_FROM_THIS (This); - if (Width < 0 || Width >= MMIO_COPY_UINT8) { + if ((UINT32)Width >= MMIO_COPY_UINT8) { return EFI_INVALID_PARAMETER; } @@ -415,7 +415,7 @@ Returns: Private = DEVICE_IO_PRIVATE_DATA_FROM_THIS (This); - if (Width < 0 || Width >= MMIO_COPY_UINT8) { + if ((UINT32)Width >= MMIO_COPY_UINT8) { return EFI_INVALID_PARAMETER; } @@ -648,7 +648,7 @@ Returns: Private = DEVICE_IO_PRIVATE_DATA_FROM_THIS (This); - if (Operation < 0 || Operation > EfiBusMasterCommonBuffer) { + if ((UINT32)Operation > EfiBusMasterCommonBuffer) { return EFI_INVALID_PARAMETER; } @@ -748,7 +748,7 @@ Returns: return EFI_INVALID_PARAMETER; } - if ((Type >= MaxAllocateType) || (Type < AllocateAnyPages)) { + if ((UINT32)Type >= MaxAllocateType) { return EFI_INVALID_PARAMETER; }