* Sync up to trunk head (r64716).
[reactos.git] / drivers / serial / serial / info.c
index b0952d5..d2804bf 100644 (file)
@@ -9,19 +9,19 @@
 
 #include "serial.h"
 
+#include <debug.h>
+
 NTSTATUS NTAPI
 SerialQueryInformation(
        IN PDEVICE_OBJECT DeviceObject,
        IN PIRP Irp)
 {
-       PSERIAL_DEVICE_EXTENSION DeviceExtension;
        PIO_STACK_LOCATION Stack;
        PVOID SystemBuffer;
        ULONG BufferLength;
        ULONG_PTR Information = 0;
        NTSTATUS Status;
 
-       DeviceExtension = (PSERIAL_DEVICE_EXTENSION)DeviceObject->DeviceExtension;
        Stack = IoGetCurrentIrpStackLocation(Irp);
        SystemBuffer = Irp->AssociatedIrp.SystemBuffer;
        BufferLength = Stack->Parameters.QueryFile.Length;