https://git.reactos.org/?p=reactos.git;a=commitdiff;h=4d811a2f97ef3bd39ca6c876d561a67ad28fd8b6

commit 4d811a2f97ef3bd39ca6c876d561a67ad28fd8b6
Author:     Thomas Faber <[email protected]>
AuthorDate: Tue Jan 30 20:48:25 2018 +0100
Commit:     Thomas Faber <[email protected]>
CommitDate: Mon Feb 5 11:49:10 2018 +0100

    [FREELDR] Remove unnecessary checks. CORE-14280
---
 boot/freeldr/freeldr/arch/i386/hardware.c | 2 --
 boot/freeldr/freeldr/arch/i386/machpc.c   | 2 +-
 2 files changed, 1 insertion(+), 3 deletions(-)

diff --git a/boot/freeldr/freeldr/arch/i386/hardware.c 
b/boot/freeldr/freeldr/arch/i386/hardware.c
index f9aa78dedb..a94ab48e32 100644
--- a/boot/freeldr/freeldr/arch/i386/hardware.c
+++ b/boot/freeldr/freeldr/arch/i386/hardware.c
@@ -112,8 +112,6 @@ HalpCalibrateStallExecution(VOID)
 
     /* Stage 1:  Coarse calibration                                   */
 
-    WaitFor8254Wraparound();
-
     delay_count = 1;
 
     do
diff --git a/boot/freeldr/freeldr/arch/i386/machpc.c 
b/boot/freeldr/freeldr/arch/i386/machpc.c
index c846bf80ae..94b295ad03 100644
--- a/boot/freeldr/freeldr/arch/i386/machpc.c
+++ b/boot/freeldr/freeldr/arch/i386/machpc.c
@@ -343,7 +343,7 @@ DetectSerialMouse(PUCHAR Port)
     TimeOut = 200;
     for (i = 0; i < 4; i++)
     {
-        while (((READ_PORT_UCHAR(Port + 5) & 1) == 0) && (TimeOut > 0))
+        while ((READ_PORT_UCHAR(Port + 5) & 1) == 0)
         {
             StallExecutionProcessor(1000);
             --TimeOut;

Reply via email to