Fix bugs in last code scrub.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@8713 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
rsun3 2009-07-02 02:01:29 +00:00
parent c453660804
commit 2101c62ad0
1 changed files with 2 additions and 2 deletions

View File

@ -925,7 +925,7 @@ ReadWriteDataSector (
MicroSecondDelay (50);
Times = Times - 1;
} while (Times >= 0);
} while (Times > 0);
if (Times == 0) {
return EFI_TIMEOUT;
@ -1124,7 +1124,7 @@ FddWaitForBSYClear (
MicroSecondDelay (50);
Delay = Delay - 1;
} while (Delay >= 0);
} while (Delay > 0);
if (Delay == 0) {
return EFI_TIMEOUT;