summaryrefslogtreecommitdiff
path: root/DuetPkg/PciRootBridgeNoEnumerationDxe
diff options
context:
space:
mode:
authorklu2 <klu2@6f19259b-4bc3-4df7-8a09-765794883524>2009-01-14 02:08:14 +0000
committerklu2 <klu2@6f19259b-4bc3-4df7-8a09-765794883524>2009-01-14 02:08:14 +0000
commit6ef5ab88d7a8246114701cdacff674aefcf5813e (patch)
tree8c37f3f3ede975f0afd656bb4ef59e3631720ddb /DuetPkg/PciRootBridgeNoEnumerationDxe
parent9be2c306aa8e267eefbc6b9d4ef099308b7f091a (diff)
downloadedk2-platforms-6ef5ab88d7a8246114701cdacff674aefcf5813e.tar.xz
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
Diffstat (limited to 'DuetPkg/PciRootBridgeNoEnumerationDxe')
-rw-r--r--DuetPkg/PciRootBridgeNoEnumerationDxe/PcatPciRootBridgeIo.c8
1 files 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 ) {