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:
@@ -290,7 +290,9 @@ PcatRootBridgeIoPollMem (
|
|||||||
return EFI_SUCCESS;
|
return EFI_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( Delay != 0 ) {
|
if (Delay == 0) {
|
||||||
|
return EFI_SUCCESS;
|
||||||
|
} else {
|
||||||
|
|
||||||
NumberOfTicks = DivU64x32Remainder (Delay, 100, &Remainder);
|
NumberOfTicks = DivU64x32Remainder (Delay, 100, &Remainder);
|
||||||
if ( Remainder !=0 ) {
|
if ( Remainder !=0 ) {
|
||||||
@@ -351,7 +353,9 @@ PcatRootBridgeIoPollIo (
|
|||||||
return EFI_SUCCESS;
|
return EFI_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (Delay != 0) {
|
if (Delay == 0) {
|
||||||
|
return EFI_SUCCESS;
|
||||||
|
} else {
|
||||||
|
|
||||||
NumberOfTicks = DivU64x32Remainder (Delay, 100, &Remainder);
|
NumberOfTicks = DivU64x32Remainder (Delay, 100, &Remainder);
|
||||||
if ( Remainder !=0 ) {
|
if ( Remainder !=0 ) {
|
||||||
|
Reference in New Issue
Block a user