mirror of https://github.com/acidanthera/audk.git
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:
parent
9be2c306aa
commit
6ef5ab88d7
|
@ -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 ) {
|
||||
|
|
Loading…
Reference in New Issue