Author: hbelusca
Date: Sun May  5 20:05:50 2013
New Revision: 58954

URL: http://svn.reactos.org/svn/reactos?rev=58954&view=rev
Log:
Legacy code from KdPortInitialize, which was put in KdPortInitializeEx, is 
deactivated because it was unusued (the actual code doesn't call 
KdPortInitialize).

Modified:
    branches/kd++/drivers/base/kdrosdbg/i386/kdbg.c

Modified: branches/kd++/drivers/base/kdrosdbg/i386/kdbg.c
URL: 
http://svn.reactos.org/svn/reactos/branches/kd%2B%2B/drivers/base/kdrosdbg/i386/kdbg.c?rev=58954&r1=58953&r2=58954&view=diff
==============================================================================
--- branches/kd++/drivers/base/kdrosdbg/i386/kdbg.c     [iso-8859-1] (original)
+++ branches/kd++/drivers/base/kdrosdbg/i386/kdbg.c     [iso-8859-1] Sun May  5 
20:05:50 2013
@@ -122,7 +122,7 @@
 static KD_PORT_INFORMATION DefaultPort = { 0, 0, 0 };
 
 /* The com port must only be initialized once! */
-static BOOLEAN PortInitialized = FALSE;
+// static BOOLEAN PortInitialized = FALSE;
 
 
 /* FUNCTIONS ****************************************************************/
@@ -135,15 +135,16 @@
     IN ULONG Unknown1,
     IN ULONG Unknown2)
 {
-    SIZE_T i;
     ULONG ComPortBase;
     CHAR buffer[80];
     ULONG divisor;
     UCHAR lcr;
 
+#if 0 // Deactivated because never used in fact (was in KdPortInitialize but 
we use KdPortInitializeEx)
     /*
      * Find the port if needed
      */
+    SIZE_T i;
 
     if (!PortInitialized)
     {
@@ -177,6 +178,7 @@
 
         PortInitialized = TRUE;
     }
+#endif
 
     /*
      * Initialize the port
@@ -271,17 +273,6 @@
     return FALSE;
 }
 
-/* HAL.KdPortPutByte */
-VOID
-NTAPI
-KdPortPutByte(
-    IN UCHAR ByteToSend)
-{
-    if (!PortInitialized)
-        return;
-    KdPortPutByteEx(&DefaultPort, ByteToSend);
-}
-
 /* ReactOS-specific */
 VOID
 NTAPI


Reply via email to