mirror of https://github.com/acidanthera/audk.git
DuetPkg, MdeModulePkg: Fix several enum comparions
These comparisons were not comparing an enum variable with a member of the same enum type. GCC 4.5 generated a warning for these comparison operations. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10932 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
818ff8c267
commit
815119f3d9
|
@ -366,7 +366,7 @@ Returns:
|
|||
// If Width is EfiPciIoWidthFifoUintX then convert to EfiPciIoWidthUintX
|
||||
// If Width is EfiPciIoWidthFillUintX then convert to EfiPciIoWidthUintX
|
||||
//
|
||||
if (Width >= EfiPciWidthFifoUint8 && Width <= EfiPciWidthFifoUint64) {
|
||||
if (Width >= EfiPciIoWidthFifoUint8 && Width <= EfiPciIoWidthFifoUint64) {
|
||||
Count = 1;
|
||||
}
|
||||
|
||||
|
|
|
@ -114,11 +114,11 @@ PcatRootBridgeIoPciRW (
|
|||
|
||||
InStride = 1 << (Width & 0x03);
|
||||
OutStride = InStride;
|
||||
if (Width >= EfiCpuIoWidthFifoUint8 && Width <= EfiCpuIoWidthFifoUint64) {
|
||||
if (Width >= EfiPciWidthFifoUint8 && Width <= EfiPciWidthFifoUint64) {
|
||||
InStride = 0;
|
||||
}
|
||||
|
||||
if (Width >= EfiCpuIoWidthFillUint8 && Width <= EfiCpuIoWidthFillUint64) {
|
||||
if (Width >= EfiPciWidthFillUint8 && Width <= EfiPciWidthFillUint64) {
|
||||
OutStride = 0;
|
||||
}
|
||||
|
||||
|
|
|
@ -112,11 +112,11 @@ PcatRootBridgeIoPciRW (
|
|||
|
||||
InStride = 1 << (Width & 0x03);
|
||||
OutStride = InStride;
|
||||
if (Width >= EfiCpuIoWidthFifoUint8 && Width <= EfiCpuIoWidthFifoUint64) {
|
||||
if (Width >= EfiPciWidthFifoUint8 && Width <= EfiPciWidthFifoUint64) {
|
||||
InStride = 0;
|
||||
}
|
||||
|
||||
if (Width >= EfiCpuIoWidthFillUint8 && Width <= EfiCpuIoWidthFillUint64) {
|
||||
if (Width >= EfiPciWidthFillUint8 && Width <= EfiPciWidthFillUint64) {
|
||||
OutStride = 0;
|
||||
}
|
||||
|
||||
|
|
|
@ -128,7 +128,7 @@ PciIoVerifyBarAccess (
|
|||
// If Width is EfiPciIoWidthFifoUintX then convert to EfiPciIoWidthUintX
|
||||
// If Width is EfiPciIoWidthFillUintX then convert to EfiPciIoWidthUintX
|
||||
//
|
||||
if (Width >= EfiPciWidthFifoUint8 && Width <= EfiPciWidthFifoUint64) {
|
||||
if (Width >= EfiPciIoWidthFifoUint8 && Width <= EfiPciIoWidthFifoUint64) {
|
||||
Count = 1;
|
||||
}
|
||||
|
||||
|
|
|
@ -535,7 +535,7 @@ ConSplitterUgaDrawBlt (
|
|||
);
|
||||
if (EFI_ERROR (Status)) {
|
||||
ReturnStatus = Status;
|
||||
} else if (BltOperation == EfiBltVideoToBltBuffer) {
|
||||
} else if (BltOperation == EfiUgaVideoToBltBuffer) {
|
||||
//
|
||||
// Only need to read the data into buffer one time
|
||||
//
|
||||
|
|
Loading…
Reference in New Issue