From 6ef5ab88d7a8246114701cdacff674aefcf5813e Mon Sep 17 00:00:00 2001 From: klu2 Date: Wed, 14 Jan 2009 02:08:14 +0000 Subject: [PATCH] For PollMem or PollIo, EFI_SUCESS should be returned when paramter Delay == 0. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@7265 6f19259b-4bc3-4df7-8a09-765794883524 --- .../PciRootBridgeNoEnumerationDxe/PcatPciRootBridgeIo.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/DuetPkg/PciRootBridgeNoEnumerationDxe/PcatPciRootBridgeIo.c b/DuetPkg/PciRootBridgeNoEnumerationDxe/PcatPciRootBridgeIo.c index d1b83ba19e..346aa63ae9 100644 --- a/DuetPkg/PciRootBridgeNoEnumerationDxe/PcatPciRootBridgeIo.c +++ b/DuetPkg/PciRootBridgeNoEnumerationDxe/PcatPciRootBridgeIo.c @@ -290,7 +290,9 @@ PcatRootBridgeIoPollMem ( return EFI_SUCCESS; } - if ( Delay != 0 ) { + if (Delay == 0) { + return EFI_SUCCESS; + } else { NumberOfTicks = DivU64x32Remainder (Delay, 100, &Remainder); if ( Remainder !=0 ) { @@ -351,7 +353,9 @@ PcatRootBridgeIoPollIo ( return EFI_SUCCESS; } - if (Delay != 0) { + if (Delay == 0) { + return EFI_SUCCESS; + } else { NumberOfTicks = DivU64x32Remainder (Delay, 100, &Remainder); if ( Remainder !=0 ) {