[KMTEST]
[reactos.git] / rostests / kmtests / ntos_ke / KeDevQueue.c
index 59a6407..66b9fe8 100644 (file)
@@ -75,6 +75,7 @@ void Tests_Insert_And_Delete()
     PKDEVICE_QUEUE_ENTRY element;
     KIRQL OldIrql;
     PKDEVICE_QUEUE_ENTRY* elem_array;
+    PKDEVICE_QUEUE_ENTRY return_value;
     PLIST_ENTRY next;
     ULONG key;
 
@@ -126,8 +127,6 @@ void Tests_Insert_And_Delete()
     trace("******* Testing KeRemoveDeviceQueue **************** \n");
     DPRINT1("\nStart KeRemoveDeviceQueue test\n");
 
-    PKDEVICE_QUEUE_ENTRY return_value;
-
     DPRINT1("Start deleting elements from queue\n");
     for (i = 0; i < INSERT_COUNT; i++) {
         return_value = KeRemoveDeviceQueue(testing_queue);