[USBEHCI]
authorJohannes Anderwald <johannes.anderwald@reactos.org>
Mon, 23 Jan 2012 03:50:11 +0000 (03:50 +0000)
committerJohannes Anderwald <johannes.anderwald@reactos.org>
Mon, 23 Jan 2012 03:50:11 +0000 (03:50 +0000)
- Don't acquire spinlock twice

svn path=/branches/usb-bringup-trunk/; revision=55090

drivers/usb/usbehci_new/usb_queue.cpp

index 574ef65..a7936b2 100644 (file)
@@ -580,16 +580,18 @@ CUSBQueue::QueueHeadCompletion(
     //
     // now unlink the queue head
     // FIXME: implement chained queue heads
+    // no need to acquire locks, as it is called with locks held
     //
 
-    KeAcquireSpinLock(&m_Lock, &OldLevel);
-
+    //
+    // unlink queue head
+    //
     UnlinkQueueHead(CurrentQH);
 
+    //
+    // insert into completed list
+    //
     InsertTailList(&m_CompletedRequestAsyncList, &CurrentQH->LinkedQueueHeads);
-
-    KeReleaseSpinLock(&m_Lock, OldLevel);
-
 }
 
 VOID