summaryrefslogtreecommitdiff
path: root/IntelFrameworkModulePkg/Bus/Isa
diff options
context:
space:
mode:
authorrsun3 <rsun3@6f19259b-4bc3-4df7-8a09-765794883524>2009-07-02 02:01:29 +0000
committerrsun3 <rsun3@6f19259b-4bc3-4df7-8a09-765794883524>2009-07-02 02:01:29 +0000
commit2101c62ad0eed8a27002e4b1aed9511eb98682af (patch)
tree2559390f4f0f4012fbaa7a034e0500601edb6716 /IntelFrameworkModulePkg/Bus/Isa
parentc4536608041b6e49ba7c44905070592b08db6b54 (diff)
downloadedk2-platforms-2101c62ad0eed8a27002e4b1aed9511eb98682af.tar.xz
Fix bugs in last code scrub.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@8713 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'IntelFrameworkModulePkg/Bus/Isa')
-rw-r--r--IntelFrameworkModulePkg/Bus/Isa/IsaFloppyDxe/IsaFloppyCtrl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/IntelFrameworkModulePkg/Bus/Isa/IsaFloppyDxe/IsaFloppyCtrl.c b/IntelFrameworkModulePkg/Bus/Isa/IsaFloppyDxe/IsaFloppyCtrl.c
index 4e6f60c565..de3ed02d9f 100644
--- a/IntelFrameworkModulePkg/Bus/Isa/IsaFloppyDxe/IsaFloppyCtrl.c
+++ b/IntelFrameworkModulePkg/Bus/Isa/IsaFloppyDxe/IsaFloppyCtrl.c
@@ -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;