From 2101c62ad0eed8a27002e4b1aed9511eb98682af Mon Sep 17 00:00:00 2001 From: rsun3 Date: Thu, 2 Jul 2009 02:01:29 +0000 Subject: Fix bugs in last code scrub. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@8713 6f19259b-4bc3-4df7-8a09-765794883524 --- IntelFrameworkModulePkg/Bus/Isa/IsaFloppyDxe/IsaFloppyCtrl.c | 4 ++-- 1 file 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; -- cgit v1.2.3