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
This commit is contained in:
klu2 2009-01-14 02:08:14 +00:00
parent 9be2c306aa
commit 6ef5ab88d7
1 changed files with 6 additions and 2 deletions

View File

@ -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 ) {