From 61efb259fb013773c582cbac2010529dbcb4568a Mon Sep 17 00:00:00 2001 From: lgao4 Date: Wed, 1 Jul 2009 06:57:25 +0000 Subject: [PATCH] Fix code bug to cause deal loop when no floppy device. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@8700 6f19259b-4bc3-4df7-8a09-765794883524 --- IntelFrameworkModulePkg/Bus/Isa/IsaFloppyDxe/IsaFloppyCtrl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/IntelFrameworkModulePkg/Bus/Isa/IsaFloppyDxe/IsaFloppyCtrl.c b/IntelFrameworkModulePkg/Bus/Isa/IsaFloppyDxe/IsaFloppyCtrl.c index 60df61f081..4e6f60c565 100644 --- a/IntelFrameworkModulePkg/Bus/Isa/IsaFloppyDxe/IsaFloppyCtrl.c +++ b/IntelFrameworkModulePkg/Bus/Isa/IsaFloppyDxe/IsaFloppyCtrl.c @@ -1184,7 +1184,7 @@ FddDRQReady ( // Stall for 50 us // Delay = Delay - 1; - } while (Delay >= 0); + } while (Delay > 0); if (Delay == 0) { return EFI_NOT_READY;