Author: cgutman Date: Tue Jan 3 16:13:06 2012 New Revision: 54817
URL: http://svn.reactos.org/svn/reactos?rev=54817&view=rev Log: [NDISUIO] - Forgot a file
Modified: branches/wlan-bringup/drivers/network/ndisuio/misc.c
Modified: branches/wlan-bringup/drivers/network/ndisuio/misc.c URL: http://svn.reactos.org/svn/reactos/branches/wlan-bringup/drivers/network/ndi... ============================================================================== --- branches/wlan-bringup/drivers/network/ndisuio/misc.c [iso-8859-1] (original) +++ branches/wlan-bringup/drivers/network/ndisuio/misc.c [iso-8859-1] Tue Jan 3 16:13:06 2012 @@ -27,19 +27,8 @@ /* Check if the device name matches */ if (RtlEqualUnicodeString(&AdapterContext->DeviceName, DeviceName, TRUE)) { - KeAcquireSpinLockAtDpcLevel(&AdapterContext->Spinlock); - - /* Check that it's not being destroyed */ - if (AdapterContext->OpenCount > 0) - { - KeReleaseSpinLockFromDpcLevel(&AdapterContext->Spinlock); - KeReleaseSpinLock(&GlobalAdapterListLock, OldIrql); - return AdapterContext; - } - else - { - KeReleaseSpinLockFromDpcLevel(&Adaptercontext->Spinlock); - } + KeReleaseSpinLock(&GlobalAdapterListLock, OldIrql); + return AdapterContext; }
CurrentEntry = CurrentEntry->Flink; @@ -50,24 +39,10 @@ }
VOID -ReferenceAdapterContext(PNDISUIO_ADAPTER_CONTEXT AdapterContext, BOOLEAN Locked) +ReferenceAdapterContext(PNDISUIO_ADAPTER_CONTEXT AdapterContext) { - KIRQL OldIrql; - - /* Lock if needed */ - if (!Locked) - { - KeAcquireSpinLock(&AdapterContext->Spinlock, &OldIrql); - } - /* Increment the open count */ AdapterContext->OpenCount++; - - /* Unlock if needed */ - if (!Locked) - { - KeReleaseSpinLock(&AdapterContext->Spinlock, OldIrql); - } }
VOID