mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 01:55:19 +00:00
[NTOS:CM] Simplify CmpDelayAllocBucketLock code a bit (#5729)
- Remove duplicate CmpDelayAllocBucketLock definition. - Remove an else.
This commit is contained in:
parent
f2a012240f
commit
c84b5007d0
1 changed files with 8 additions and 10 deletions
|
@ -15,9 +15,9 @@
|
|||
/* GLOBALS *******************************************************************/
|
||||
|
||||
BOOLEAN CmpAllocInited;
|
||||
KGUARDED_MUTEX CmpAllocBucketLock, CmpDelayAllocBucketLock;
|
||||
|
||||
KGUARDED_MUTEX CmpAllocBucketLock;
|
||||
LIST_ENTRY CmpFreeKCBListHead;
|
||||
|
||||
KGUARDED_MUTEX CmpDelayAllocBucketLock;
|
||||
LIST_ENTRY CmpFreeDelayItemsListHead;
|
||||
|
||||
|
@ -252,16 +252,14 @@ SearchList:
|
|||
/* Clear the KCB pointer */
|
||||
Entry->Kcb = NULL;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
/* Release the lock */
|
||||
KeReleaseGuardedMutex(&CmpDelayAllocBucketLock);
|
||||
return NULL;
|
||||
|
||||
/* Do the search again */
|
||||
goto SearchList;
|
||||
}
|
||||
|
||||
/* Do the search again */
|
||||
goto SearchList;
|
||||
/* Release the lock */
|
||||
KeReleaseGuardedMutex(&CmpDelayAllocBucketLock);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
VOID
|
||||
|
|
Loading…
Reference in a new issue